关于binutils的一些错误

来源:互联网 发布:丁红玉淘宝 编辑:程序博客网 时间:2024/06/04 23:19

 我在装binutils的时候出现了致命的错误,以前发生个错误感觉是因为自己懒写了个脚本让他自己去运行了,后来到了第六章的测试工具链的时候出现了错误,后来从头再来,不用脚本了,自己一个一个的大字安装,然后又到第六章我崩溃了,安装binutils时我运行命令:make tooldir=/usr 

然后提示:   ar: error while loading shared libraries: libbfd-2.17.so : cannot open shared object file: no such file or directory

有人提示看看这些测试有问题没有

bash --version | head -n1 | cut -d" " -f2-4
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-4

这个有问题 提示还是找不到libbfd-2.17.so
bison --version | head -n1
bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
diff --version | head -n1
find --version | head -n1
gawk --version | head -n1
gcc --version | head -n1
/lib/libc.so.6 | head -n1 | cut -d" " -f1-7
grep --version | head -n1
gzip --version | head -n1
cat /proc/version
make --version | head -n1
patch --version | head -n1
sed --version | head -n1
tar --version | head -n1

 

我ls /usr/lib/下边有这个东西阿。然后ln -s /usr/lib/libbfd-2.17.so /lib/libbfd-2.17.so也不行,后来在#linux频道上有高手告诉我用LD_LIBRARY_PATH来解决,我开始找/etc/ld.so.conf没有,找~/.bash_profile也没有,再次崩溃。最后

export LD_LIBRARY_PATH=/usr/lib:/lib:/usr/local/lib 就可以了。

在安装gcc又出现了毛病说有个参数不对没有那个参数:--enable-

原创粉丝点击