Ubuntu 11.04
1: source code
gcc 4.7.2
http://gcc.gnu.org/releases.html
gmp 5.1.0
http://gmplib.org/#DOWNLOAD
mpfr 3.1.1
http://www.mpfr.org/mpfr-current/
mpc 0.19
http://www.multiprecision.org/?prog=mpc&page=download
m4 1.4
http://ftp.gnu.org/gnu/m4/
ppl 1.0
http://bugseng.com/products/ppl/Download
sudo apt-get install libppl0.11-dev
sudo apt-get install gcc-multilib
也可以執行
./contrib/download_prerequisites
2: 以上的code 編譯
./configure
make && make install
3: gcc 編譯
./configure --with-gmp=/home/haha/work/tmp/gmp-5.1.0 --with-mpfr=/home/haha/work/tmp/mpfr-3.1.1 --with-mpc=/home/haha/work/tmp/mpc-1.0.1
請用絕對路徑
make && make install
4: gcc --version ?
沒有留言:
張貼留言