G_T*_*G_T 3 package-management compiling make 13.10
我试图在本地安装一个用 C++ 编写的程序。我已经下载了该程序,并试图按照程序指令的指示使用“make”命令来编译该程序。但是,当我这样做时,我收到此错误:
/usr/include/stdc-predef.h:30:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
Run Code Online (Sandbox Code Playgroud)
在互联网上环顾四周,有些人似乎通过以下方式解决了这个问题
sudo apt-get install libc6-dev-i386
Run Code Online (Sandbox Code Playgroud)
我检查了这个包是否已安装,但没有。当我尝试安装它时,我得到
E: Unable to locate package libc6-dev-i386
Run Code Online (Sandbox Code Playgroud)
我已经跑了
sudo apt get update
Run Code Online (Sandbox Code Playgroud)
我确定这是一个新手问题,但任何帮助表示赞赏,我正在运行 13.10 32 位。
更新:我尝试了在类似错误中发现的其他建议。我所管理的只是一个不同但相似的错误。这是我得到的。
Geoffrey@Geoffrey-Latitude-E6400:/usr/local/src/trinityrnaseq_r2013_08_14$ make
Using gnu compiler for Inchworm and Chrysalis
cd Inchworm && (test -e configure || autoreconf) \
&& ./configure --prefix=`pwd` && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for library containing cos... none required
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make[1]: Entering directory `/usr/local/src/trinityrnaseq_r2013_08_14/Inchworm'
Making install in src
make[2]: Entering directory `/usr/local/src/trinityrnaseq_r2013_08_14/Inchworm/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -pedantic -fopenmp -Wall -Wextra -Wno-long-long -Wno-deprecated -m64 -g -O2 -MT Fasta_entry.o -MD -MP -MF ".deps/Fasta_entry.Tpo" -c -o Fasta_entry.o Fasta_entry.cpp; \
then mv -f ".deps/Fasta_entry.Tpo" ".deps/Fasta_entry.Po"; else rm -f ".deps/Fasta_entry.Tpo"; exit 1; fi
In file included from Fasta_entry.hpp:4:0,
from Fasta_entry.cpp:1:
/usr/include/c++/4.8/string:38:28: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^
compilation terminated.
make[2]: *** [Fasta_entry.o] Error 1
make[2]: Leaving directory `/usr/local/src/trinityrnaseq_r2013_08_14/Inchworm/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/trinityrnaseq_r2013_08_14/Inchworm'
make: *** [inchworm] Error 2
Run Code Online (Sandbox Code Playgroud)
使用Ubuntu 13.10 amd64 后,
问题/usr/include/stdc-predef.h:30:26: fatal error: bits/predefs.h: No such file or directory compilation terminated.已解决:
$ sudo apt-get install build-essential
$ sudo apt-get install libc6-dev-i386
$ sudo apt-get install g++-4.8-multilib
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19432 次 |
| 最近记录: |