centos 6.3 安装GCC 4.8.1

cd contrib
./download_prerequisites
cd gmp
./configure
make & make install
updatedb
ldconfig
cd ..
cd mpfr
./configure
make & make install
updatedb
ldconfig
cd ..
cd mpc
./configure
make & make install
updatedb
ldconfig
cd ..
./configure
make & make install
updatedb
ldconfig

另外,如果中间找不到库文件,还要在/etc/ld.so.conf.d/中增加一个库路径文件,假设为normal.conf:

/usr/lib
/usr/lib/sse2
/usr/local/lib

然后更新配置:

updatedb
ldconfig


你可能感兴趣的:(centos 6.3 安装GCC 4.8.1)