代码改变世界

centos6 编译安装gcc4.8.2

2015-10-08 12:58  游乐场123  阅读(392)  评论(0编辑  收藏  举报

12 wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-4.8.2/gcc-4.8.2.tar.gz
13 rm -r -f gcc-4.8.4.tar.gz
14 tar -xzf gcc-4.8.2.tar.gz
15 cd gcc-4.8.2
16 ./contrib/download_prerequisites

13 rm -r -f gcc-4.8.4.tar.gz
14 tar -xzf gcc-4.8.2.tar.gz
15 cd gcc-4.8.2
16 ./contrib/download_prerequisites
17 ./configure --prefix=/soft/gcc4.8.2 --with-mpfr-lib=/usr/local/lib --enable-languages=c,c++ --disable-multilib
18 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
19 make -j4
20 ls
21 ls -l mpft*
22 wget http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.gz
23 wget http://www.mpfr.org/mpfr-current/mpfr-3.1.3.tar.gz
24 tar -xzf mpfr-3.1.3.tar.gz
25 cd mpfr
26 ./configure
27 cd ../
28 ls -l gmp*
29 cd gmp-4.3.2/
30 ls
31 ./configure --enable-shared=no
32 make -j4
33 make install
34 cd ../
35 ls -l mpfr*
36 cd mpfr-2.4.2/
37 ./configure --enable-shared=no
38 make -j4
39 make install
40 cd ../
41 ls -l mpc*
42 cd mpc-0.8.1
43 ./configure --disable-shared
44 make -j4
45 make install
46 cd ../
47 ./configure --with-mpfr-lib=/usr/local/lib --enable-languages=c,c++ --disable-multilib
48 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
49 make -j4
50 make distclean
51 ./configure --with-mpfr-lib=/usr/local/lib --enable-languages=c,c++ --disable-multilib
52 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
53 make -j4
54 make install
55 make -j4
56 gcc
57 yum install gcc
58 cd ../
59 yum install gcc
60 history
61 yum groupinstall "Development Tools"
62 ls
63 cd gcc-4.8.2
64 history
65 make distclean
66 ./configure  --with-mpfr-lib=/usr/local/lib --enable-languages=c,c++ --disable-multilib
67 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
68 make -j4
69 gcc
70 cd
71 gcc
72 gcc -v
73 ls
74 rm -r -f gcc-4.8.2
75 tar -xzf gcc-4.8.2.tar.gz
76 yum -y install glibc-devel.i686 glibc-devel
77 cd gcc-4.8.2
78 history
79 ./configure  --enable-checking=release --enable-languages=c,c++ --disable-multilib
80 make -j4
81 gcc -v
82 reboot
83 gcc -v
84 history
85 wget https://nodejs.org/dist/latest/node-v4.0.0.tar.gz
86 wget https://nodejs.org/dist/latest/node-v4.0.0.tar.gz --no-check-certificate
87 cd gcc-4.8.2
88 history
89 make install
90 gcc -v
91 reboot
92 gcc
93 gcc -v