C++ 配置:错误:C++;“预处理器”/lib/cpp“;未通过健全性检查
这个错误使我发疯。我尝试了许多解决办法,但都没有成功。 这是我的问题,当我启动C++ 配置:错误:C++;“预处理器”/lib/cpp“;未通过健全性检查,c++,ubuntu,configure,libtool,C++,Ubuntu,Configure,Libtool,这个错误使我发疯。我尝试了许多解决办法,但都没有成功。 这是我的问题,当我启动/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 t
/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
我现在不知道如何解决这个问题。您有三个不同的GCC版本,但使用哪一个还不清楚。看起来C++和g++的功能是正确的,但是GCC No:是的,对于<代码>配置< /COD>是一个很大的混乱。试试我发布的链接中的建议。甚至可以卸载所有三个版本并重新安装您选择的版本。使用
/lib/cpp
作为预处理器几乎总是表明编译器自动检测中存在错误(以我在桌面系统上的经验)。阅读config.log
查看检测预处理器时configure
尝试运行的内容、失败的内容以及原因。该日志通常包含您需要的所有信息。gcc指向无效链接:因为当我尝试