二、再进行前三个依赖安装之前,配置好yum源
[Neokylin-extras]
name= NeoKylin 5.1 extras
baseurl=ftp://172.18.3.101/101/yum_source/neokylin/Neokylin-extras/
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-$basearch
三、一定要进行命令的更新
yum clean all
yum makecache
yum list
yum repolist
四、进行各个部分的编码安装 注意权限问题
tar xzvf mpc-1.0.1.tar.gz
tar xzvf mpfr-3.1.1.tar.gz
tar xvf gmp-6.0.0a.tar.xz
tar xzvf gcc-4.8.5.tar.gz
cd ../gmp-6.0.0
./configure --prefix=/usr/local/gmp
make && make install
cd ../mpfr-3.1.1
./configure --prefix=/usr/local/mpfr --with-gmp=/usr/local/gmp/
make && make install
cd ../mpc-1.0.1
./configure --prefix=/usr/local/mpc --with-gmp=/usr/local/gmp/ --with-mpfr=/usr/local/mpfr/
make && make install
cd ../gcc-4.8.5
yum install gcc-c++
yum install glibc-devel.i686
./configure --prefix=/usr/local/gcc --with-gmp=/usr/local/gmp/ --with-mpfr=/usr/local/mpfr/ --with-mpc=/usr/local/mpc/ --disable-multilib –enable-languages=c,c++
(java 选填 慎重)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpc/lib:/usr/local/gmp/lib:/usr/local/mpfr/lib/
make && make install
五、注意的问题
一定要 –disable-multilib –enable-languages=c,c++ 否则再64bit机器上会报错