설치방법 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
'Linux > CentOS' 카테고리의 다른 글
[CentOS] 6.5에서 7.0으로 업그레이드 (0) | 2014.07.17 |
---|---|
em1를 eth0으로 이름 변경 (0) | 2014.06.24 |
[CentOS] CentOS 32비트, 64비트 확인 (0) | 2014.01.13 |
[CentOS] Kingsoft Office on CentOS 6 (0) | 2014.01.07 |
[CentOS] Resolving cannot find -lm and -lz error on CentOS 6 (0) | 2014.01.03 |
최근댓글