配置:错误:C++预处理器"/lib/cpp"未通过健全性检查
Configure: error: C++ preprocessor "/lib/cpp" fails sanity check
这个错误让我抓狂。我尝试了许多解决方案,但没有成功。 这是我的问题,当我启动./configure
来编译libtool时,出现此错误:
....
checking for g++... g++
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/thierry/libtool-master/libtool-master':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
由于它的大小,我无法向您展示config.log
,并且它有一些二进制字符。
我有所有的编译器 c++、g++、gcc,如上所示:
thierry@LFR038391:~/DeepSpeech$ dpkg -l | grep c++
ii libsigc++-2.0-0v5:amd64 2.10.0-2 amd64 type-safe Signal Framework for C++ - runtime
ii libstdc++-6-dev:amd64 6.5.0-2ubuntu1~18.04 amd64 GNU Standard C++ Library v3 (development files)
ii libstdc++-7-dev:amd64 7.4.0-1ubuntu1~18.04.1 amd64 GNU Standard C++ Library v3 (development files)
ii libstdc++6:amd64 8.3.0-6ubuntu1~18.04.1 amd64 GNU Standard C++ Library v3
thierry@LFR038391:~/DeepSpeech$ pwd
/home/thierry/DeepSpeech
thierry@LFR038391:~/DeepSpeech$ dpkg -l | grep gcc
ii gcc 4:7.4.0-1ubuntu2.3 amd64 GNU C compiler
ii gcc-6 6.5.0-2ubuntu1~18.04 amd64 GNU C compiler
ii gcc-6-base:amd64 6.5.0-2ubuntu1~18.04 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-7 7.4.0-1ubuntu1~18.04.1 amd64 GNU C compiler
ii gcc-7-base:amd64 7.4.0-1ubuntu1~18.04.1 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-8-base:amd64 8.3.0-6ubuntu1~18.04.1 amd64 GCC, the GNU Compiler Collection (base package)
ii libgcc-6-dev:amd64 6.5.0-2ubuntu1~18.04 amd64 GCC support library (development files)
ii libgcc-7-dev:amd64 7.4.0-1ubuntu1~18.04.1 amd64 GCC support library (development files)
ii libgcc1:amd64 1:8.3.0-6ubuntu1~18.04.1 amd64 GCC support library
thierry@LFR038391:~/DeepSpeech$ dpkg -l | grep g++
ii g++ 4:7.4.0-1ubuntu2.3 amd64 GNU C++ compiler
ii g++-6 6.5.0-2ubuntu1~18.04 amd64 GNU C++ compiler
ii g++-7 7.4.0-1ubuntu1~18.04.1 amd64 GNU C++ compiler
我现在对如何解决这个问题没有更多的想法。
我昨天遇到了同样的问题,我所做的是在我的 VM 中安装了所有这些 RPM,然后它开始运行良好。
这些转速中的大多数是相互依赖的。
已安装的 Pkgs
cpp-4.8.5-44.el7.x86_64.rpm
glibc-2.17-317.el7.x86_64.rpm
glibc-devel-2.17-317.el7.x86_64.rpm
kernel-headers-3.10.0-1160.15.2.el7.x86_64.rpm
mpfr-3.1.1-4.el7.x86_64.rpm
gcc-4.8.5-44.el7.x86_64.rpm
glibc-common-2.17-317.el7.x86_64.rpm
glibc-headers-2.17-317.el7.x86_64.rpm
libmpc-1.0.1-3.el7.x86_64.rpm
nss-softokn-freebl-3.44.0-8.el7_7.i686.rpm
相关文章:
- valgrind-hellgrind与泄漏检查的结果不同
- C++模板来检查友元函数的存在
- 检查输入是否不是整数或数字
- 试图让变量检查数组中的某些内容
- 检查值是否在集合p1和p2中,但不在p3中
- C++概念:如何使用'concept'检查模板化结构的属性?
- 概念TS检查忽略私有访问修饰符
- 检查 std::shared_ptr<> 的当前底层类型是否为 T
- 在c++中检查长方体是否尽可能快地重叠(无迭代)
- 如何在C++中检查2D数组中负值的输入验证
- C++:正在检查LinkedList中的回文-递归方法-错误
- 使用for循环检查数组中的重复项
- 如何指定我希望我的LIB链接到的DLL文件?-Visual Studio 2019
- JSON转换为nlohmann JSON-lib中的结构数组
- 配置:错误:C++预处理器"/lib/cpp"未通过健全性检查
- 使用 ffh.getFieldType() 检查复选框 == "/Btn" 与 qpdf lib
- 如何修复配置 PHP 7.0.1 时C++预处理器"/lib/cpp"健全性检查错误
- Qt -用预处理器指令检查链接的.lib在windows上的可用性
- 如何检查 dll/lib 中的函数是否在 windows 中"C"?
- 如何检查 LIB 导入库是否完全匹配其 DLL