当前位置: 技术问答>linux和unix
在高版本的fedora装低版本gcc的问题
来源: 互联网 发布时间:2016-01-13
本文导语: 小弟原来的fedora上的gcc版本是4.x,由于新开发一个项目需要用3.4的gcc,安装完了之后,用ln连接出来了gcc34,g++34,用它们编译测试程序, 出现:installation problem, cannot exec `/usr/local/gcc3.4/bin/../lib/gcc/i386-redhat-linux/3.4.3/../.....
小弟原来的fedora上的gcc版本是4.x,由于新开发一个项目需要用3.4的gcc,安装完了之后,用ln连接出来了gcc34,g++34,用它们编译测试程序,
出现:installation problem, cannot exec `/usr/local/gcc3.4/bin/../lib/gcc/i386-redhat-linux/3.4.3/../../../../i386-redhat-linux/bin/as': 没有那个文件或目录
然后修改LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/gcc3.4/libLD_LIBRARY_PATH
然后就天下大乱,输入什么都是这个样子
: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by vi)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.3.4' not found (required by vi)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libselinux.so.1)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libselinux.so.1)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libtermcap.so.2)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libtermcap.so.2)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libacl.so.1)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libsepol.so.1)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libsepol.so.1)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libattr.so.1)
然后再把LD_LIBRARY_PATH置为空就好了,该怎么弄啊,谢谢各位
出现:installation problem, cannot exec `/usr/local/gcc3.4/bin/../lib/gcc/i386-redhat-linux/3.4.3/../../../../i386-redhat-linux/bin/as': 没有那个文件或目录
然后修改LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/gcc3.4/libLD_LIBRARY_PATH
然后就天下大乱,输入什么都是这个样子
: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by vi)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.3.4' not found (required by vi)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libselinux.so.1)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libselinux.so.1)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libtermcap.so.2)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libtermcap.so.2)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libacl.so.1)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libsepol.so.1)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libsepol.so.1)
vi: /usr/local/gcc3.4/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libattr.so.1)
然后再把LD_LIBRARY_PATH置为空就好了,该怎么弄啊,谢谢各位
|
export 不是这样设的啊
应为
export LD_LIBRARY_PATH=/usr/local/gcc3.4/lib:$LD_LIBRARY_PATH
试试
应为
export LD_LIBRARY_PATH=/usr/local/gcc3.4/lib:$LD_LIBRARY_PATH
试试