编译需要,如下软件gcc-4.4.2, gmp-4.3.2.tar.bz2 mpfr-2.4.2.tar.bz2。 如果安装gmp, mpfr到非默认路径,则需要将gmp, mpfr的lib加入到LD_LIBRARY_PATH中, 快速处理方式,将/path/to/gmp-install-dir/lib及/path/to/mpfr-install-dir/lib加入到/etc/ld.so.conf文件中(每行一个路径) 加完后运行, ldconfig 完成后, 创建一个gcc编译临时目录,进入进行编译, 如/home/xxx/gcc4 cd /home/xxx/gcc4 /home/xxx/gcc-4.4.2/configure –prefix=/home/xxx/mygcc4 –with-gmp=/path/to/gmp-install-dir –with-mpfr=/path/to/gmpfr-install-dirmake make install =============== 若不指定或设置好gmp或mpfr的库路径, 安装过程将出现如下问题 > make Checking multilib configuration for libgcc… Configuring stage 1 in i686-pc-linux-gnu/libgcc configure: error: cannot compute suffix of object files: cannot compile See `config.log’ for more details. make: *** Error...