|
楼主 |
发表于 2008-2-5 08:35:48
|
显示全部楼层
GCC 4.2.3 is released
installation steps:
1. ../configure -v --enable-languages=c,c++ --prefix=/usr/gcc-4.2-3 --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.2-3 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-gnu-ld --enable-checking=release x86_64-linux-gnu --disable-multilib
2. make (-j2 if you have dual cores)
3. make install(as root) or sudo make install
[br][br][以下内容由 newcfd 在 2008年02月05日 08:41am 时添加] [br]
check if the installation works, type gcc -version. If it shows:
gcc (GCC) 4.2.3
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
installation is successful. If not, do the following:
1. go to /usr/bin/
2. sudo rm gcc
3. sudo rm g++
4. sudo ln -s gcc-4.2.3 gcc
5. sudo ln -s g++-4.2.3 g++ |
|