반응형

설치방법 1

# wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-4.7.2/gcc-4.7.2.tar.bz2

# tar jxvfp gcc-4.7.2.tar.bz2

# cd gcc-4.7.2

 

### GCC 컴파일 시 필요한 GMP, MPC, MPFR 라이브러리를 다운로드 받아 추가하는 스크립트

# ./contrib/download_prerequisites

# ./configure --prefix=/usr/local/gcc-4.7.2 && make -j 8 && make install

 

설치방법 2

# export SOFT=/BiO/apps
# export NCPU=8

 

# wget ftp://ftp.gmplib.org/pub/gmp-5.0.4/gmp-5.0.4.tar.bz2
# tar jxvfp gmp-5.0.4.tar.bz2
# cd gmp-5.0.4
# ./configure --prefix=$SOFT/gmp-5.0.4 && make -j $NCPU && make install

 

# wget http://www.mpfr.org/mpfr-current/mpfr-3.1.0.tar.bz2
# tar jxvfp mpfr-3.1.0.tar.bz2
# cd mpfr-3.1.0
# ./configure --prefix=$SOFT/mpfr-3.1.0 --with-gmp=$SOFT/gmp-5.0.4 && make -j $NCPU && make install

 

# wget http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz
# tar zxvfp mpc-0.9.tar.gz
# cd mpc-0.9
# ./configure --prefix=$SOFT/mpc-0.9 --with-gmp=$SOFT/gmp-5.0.4  --with-mpfr=$SOFT/mpfr-3.1.0 && make -j $NCPU && make install

 

# cd gcc-4.5.0

# ./configure --prefix=$SOFT/gcc-4.5.0 --with-mpfr=$SOFT/mpfr-3.1.0 --with-gmp=$SOFT/gmp-5.0.4/ --with-mpc=$SOFT/mpc-0.9
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:$SOFT/mpfr-3.1.0/lib:$SOFT/gmp-5.0.4/lib:$SOFT/mpc-0.9/lib
# make -j $NCPU && make install

 

 

 

 

반응형
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기