digital西行庵 wiki  Index  Search  Changes  PageRank  RSS  Login

gcc-4.3.2 ƳÆþ

ページを編集ã™ã‚‹ã«ã¯ãƒ­ã‚°ã‚¤ãƒ³ãŒå¿…è¦ã§ã™ã€‚

gcc-4.3.X

gmp 㨠mpfr ãŒå¿…é ˆã«ãªã£ã¦ã€å°Žå…¥ãŒã‚ã‚“ã©ã†ã«ãªã£ãŸã€‚

LD_LIBRARY_PATH ã« mpfr ã®ãƒ©ã‚¤ãƒ–ラリを設定ã—ãªã„ã¨gccã®makeãŒã“ã‘る。ãªã‚“ã¦ã“ã£ãŸãƒã€‚

export LD_LIBRARY_PATH=/usr/local/mpfr/2.3.2

ã“ã‚ŒãŒãªã„ã¨ã ã‚。

RHEL3 ã®å ´åˆ

RHEL3 fullupdate / gcc-3.2.3

フルセットã§ãƒ“ルドã—よã†ã¨ã™ã‚‹ã¨ã€ä½•æ•…ã‹ã‚¨ãƒ©ãƒ¼åœæ­¢ã€‚

むむむ。ã©ã†ã—よã†ã€‚

fortran java ada objc++ を除外ã—ã¦ä½•ã¨ã‹æˆåŠŸ

ã“ã‚Œã§å‹˜å¼ã—ã¡ãり。

gmp-4.2.4 ã‚’å°Žå…¥

bash-2.05b$ tar zxvf gmp-4.2.4.tar.gz
bash-2.05b$ cd gmp-4.2.4
bash-2.05b$ mkdir objdir
bash-2.05b$ cd objdir
bash-2.05b$ ./configure --prefix='/usr/local/gmp/4.2.4'
bash-2.05b$ make
bash-2.05b$ make check
bash-2.05b$ sudo make install
bash-2.05b$ cd ../..
bash-2.05b$ sudo rm -rf gmp-4.2.4

mpfr-2.3.2 ã‚’å°Žå…¥

bash-2.05b$ tar zxvf mpfr-2.3.2.tar.gz
bash-2.05b$ cd mpfr-2.3.2
bash-2.05b$ mkdir objdir
bash-2.05b$ cd objdir
bash-2.05b$ ./configure --prefix='/usr/local/mpfr/2.3.2'
bash-2.05b$ make
bash-2.05b$ make check
bash-2.05b$ sudo make install
bash-2.05b$ export LD_LIBRARY_PATH='/usr/local/mpfr/2.3.2/lib':$LD_LIBRARY_PATH
bash-2.05b$ cd ../..
bash-2.05b$ sudo rm -rf mpfr-2.3.2

gcc-4.3.2 ã‚’å°Žå…¥

bash-2.05b$ tar zxvf gcc-4.3.2.tar.gz
bash-2.05b$ mkdir gccobj-4.3.2	
bash-2.05b$ cd gccobj-4.3.2
bash-2.05b$ ../gccobj-4.3.2/configure --prefix='/usr/local/gcc/4.3.2' \
--with-gmp='/usr/local/gmp/4.2.4' --with-mpfr='/usr/local/mpfr/2.3.2' \
--enable-threads --enable-languages='c,c++,objc'
bash-2.05b$ make bootstrap
bash-2.05b$ sudo make install
bash-2.05b$ cd ..
bash-2.05b$ sudo rm -rf gccobj-4.3.2
bash-2.05b$ sudo rm -rf gcc-4.3.2

ã‚ã¨ã‹ãŸã¥ã‘

bash-2.05b$ sudo rm -rf *.tar.gz

CentOS5.0 ã®å ´åˆ

CntOS5.0 fullupdate / gcc-4.1.2

gmp 㨠mpfr ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«å…ˆã‚’ /usr/local/gcc/4.3.2 ã«ã—ã¦ã¿ãŸã€‚

ã¡ãªã¿ã«ã€CentOS5.0(+開発パッケージ)ã«ã¯ã€gmp-4.1.4-10.el5.i386 ãŒã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«æ¸ˆã¿ãªã®ã§ã€mpfr ã®ã¿ãƒ“ルドã™ã‚Œã°ã„ã„ã®ã ãŒä¸€å¿œã€gmp-4.2.4 もビルド。

gmp-4.2.4 ã‚’å°Žå…¥

[root@centos50]# tar jxf gmp-4.2.4.tar.bz2
[root@centos50]# cd gmp-4.2.4
[root@centos50]# mkdir objdir
[root@centos50]# cd objdir
[root@centos50]# ../configure --prefix='/usr/local/gcc/4.3.2'
[root@centos50]# make
[root@centos50]# make check
[root@centos50]# make install
[root@centos50]# cd ../..
[root@centos50]# rm -rf gmp-4.2.4

mpfr-2.3.2 ã‚’å°Žå…¥

[root@centos50]# tar jxf mpfr-2.3.2.tar.bz2
[root@centos50]# cd mpfr-2.3.2
[root@centos50]# mkdir objdir
[root@centos50]# cd objdir
[root@centos50]# ../configure --with-gmp='/usr/local/4.3.2'--prefix='/usr/local/4.3.2'
[root@centos50]# make
[root@centos50]# make check
[root@centos50]# make install
[root@centos50]# cd ../..
[root@centos50]# rm -rf mpfr-2.3.2

gcc-4.3.2 ã‚’å°Žå…¥

[root@centos50]# export LD_LIBRARY_PATH='/usr/local/gcc/4.3.2'
[root@centos50]# tar jxf gcc-4.3.2.tar.bz2
[root@centos50]# cd gcc-4.3.2
[root@centos50]# mkdir objdir
[root@centos50]# cd objdir
[root@centos50]# ../configure --with-gmp='/usr/local/gcc/4.3.2' \
--with-mpfr='/usr/local/gcc/4.3.2' --prefix='/usr/local/gcc/4.3.2' --enable-threads
[root@centos50]# make bootstrap
[root@centos50]# make install
[root@centos50]# cd ../..
[root@centos50]# rm gcc-4.3.2

ã‚ã¨ã‹ãŸã¥ã‘

[root@centos50]# rm -f *.tar.bz2 

RHEL5 ã ã¨ãƒ•ãƒ«ã‚»ãƒƒãƒˆã§ãƒ“ルドå¯èƒ½ã ãªã€‚

adaã€fortranã€objectCã€objectC++ ãªã‚“ã¦ç”¨ã¯ãªã„ã‚“ã ã‘ã©ãƒ»ãƒ»ãƒ»ã€‚

ã¨ã„ã†ã‚ã‘ã§ã€€core + g++

gmp mpfr ã¯ä¸è¦ã®ã‚ˆã†ã ã€‚ãªã‚“ã ã‚ˆã…ã€æœ€åˆã‹ã‚‰ã“ã‚Œã§ã‚ˆã‹ã£ãŸã˜ã‚ƒãªã„ã‹ã€‚

[root@centos50]# tar jxf gcc-core-4.3.2.tar.bz2
[root@centos50]# tar jxf gcc-g++-4.3.2.tar.bz2
[root@centos50]# cd gcc-4.3.2
[root@centos50]# mkdir objdir
[root@centos50]# cd objdir
[root@centos50]# ../configure --prefix='/usr/local/gcc/4.3.2-core' --enable-threads
[root@centos50]# make bootstrap
[root@centos50]# make install
[root@centos50]# cd ../..
[root@centos50]# rm -rf gcc-4.3.2
Last modified:2008/10/13 12:22:59
Keyword(s):
References:
This page is frozen.