1. Download gcc 4.4.2 from http://gcc.gnu.org/
2. tar xvf gcc-4.4.2.tar.gz
cd gcc-4.4.2/
mkdir /home/happy/gcc-4.4.2-build -p
3.
./configure --prefix=/home/happy/gcc-4.4.2-build/ --program-suffix=-4.4.2
./configure -h ( Type this command will see the following explanation )
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
4. make && make install
Reference :
0 意見:
張貼留言