|
您好,从截图信息来看,您的gcc版本是4.1.2,而AnyChat for Linux SDK所需要的最低版本是:gcc version 4.4.3,所以请升级一下您的gcc、glibc便可解决该问题。
升级GCC的流程:- #!/bin/bash
- <span style="line-height: 1.5;">cd /opt/</span>
- wget -c ftp://gcc.gnu.org/pub/gcc/infrastructure/{gmp-4.3.2.tar.bz2,mpc-0.8.1.tar.gz,mpfr-2.4.2.tar.bz2}
- <span style="line-height: 1.5;">wget -c http://ftp.gnu.org/gnu/gcc/gcc-4.6.1/gcc-4.6.1.tar.bz2 </span>
- <span style="line-height: 1.5;">tar jxf gmp-4.3.2.tar.bz2 &&cd gmp-4.3.2/ ;./configure --prefix=/usr/local/gmp/</span>
- <span style="line-height: 1.5;">make -j 24</span>
- <span style="line-height: 1.5;">make install</span>
- <span style="line-height: 1.5;">sleep 1</span>
- <span style="line-height: 1.5;">cd ../ ;tar jxf mpfr-2.4.2.tar.bz2 ;cd mpfr-2.4.2/ ;./configure --prefix=/usr/local/mpfr --with-gmp=/usr/local/gmp</span>
- <span style="line-height: 1.5;">make -j 24</span>
- <span style="line-height: 1.5;">make install</span>
- <span style="line-height: 1.5;">cd ../ ;tar xzf mpc-0.8.1.tar.gz ;cd mpc-0.8.1 ;./configure --prefix=/usr/local/mpc --with-mpfr=/usr/local/mpfr --with-gmp=/usr/local/gmp</span>
- <span style="line-height: 1.5;">make -j 24</span>
- <span style="line-height: 1.5;">make install</span>
- cd ../ ;tar jxf gcc-4.6.1.tar.bz2 ;cd gcc-4.6.1 ;./configure --prefix=/usr/local/gcc --enable-threads=posix --disable-checking --disable-multilib --enable-languages=c,c++ --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr/ --with-mpc=/usr/local/mpc/
- <span style="line-height: 1.5;">
- </span>
复制代码 参考:http://nayan115.blog.sohu.com/265711262.html
升级GLIBC的流程:- cd /usr/local/src
- wget http://ftp.gnu.org/pub/gnu/glibc/glibc-2.7.tar.gz
- tar zxvf glibc-2.7.tar.gz
- glibc-2.7/configure #执行configure命令时不能进到glibc-2.7文件夹里面,否则无法执行
- cd glibc-2.7
- make && make install
复制代码 参考1:http://blog.csdn.net/qq160816/article/details/7679426
参考2:http://kingplesk.org/2013/01/linux%EF%BC%9Aliblibc-so-6-version-glibc_2-7%E2%80%B2-not-found-centos/
|
|