gcc降版本問題 - Linux

By Kumar
at 2010-11-29T21:30
at 2010-11-29T21:30
Table of Contents
本來工作站的gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
也有安裝gcc34
但是因為我要用到gcc3.3.3 所以我拜了咕狗大神後 安裝了gcc3.3.3 (?)
在/usr/local/gcc333/bin/gcc -v
會出現
Reading specs from
/usr/local/gcc333/lib/gcc-lib/x86_64-redhat-linux/3.3.3/specs
Configured with: ./configure --prefix=/usr/local/gcc333 : (reconfigured)
./configure --prefix=/usr/local/gcc333 --enable-threads=posix
--disable-checking --enable--long-long --host=x86_64-redhat-linux
--with-system-zlib --enable-languages=c,c++,java
Thread model: posix
gcc version 3.3.3
這樣是有安裝成功嗎?
但是我在一般隨便的目錄下gcc -v 還是gcc version 4.1.2 完全沒改變....
不知道要怎麼切換gcc版本?
我Makefile檔讓 CXX = g++-3.3
compile後出現下面的錯誤:
make[1]: g++-3.3: Command not found
make[1]: *** [lexbench.o] Error 127
這是代表我不適用gcc3.3.3 compile的意思嗎?
新手求救QQ 問題如果很笨 請多多原諒><
非常謝謝各位~
--
▄ ▆ ● ◤ ●
◢ ˙ ˙ ◣ ● ▼◥ ▲●
◆◣ ◤◆ 上吧,藍胖!! ● ▲●
◥ \◤' (OwQ )
◣ ◣ ◤ ) ) ﹀ \ \ ◣
vcfsvjf ◣ 〈 ◤◤◤◥
--
也有安裝gcc34
但是因為我要用到gcc3.3.3 所以我拜了咕狗大神後 安裝了gcc3.3.3 (?)
在/usr/local/gcc333/bin/gcc -v
會出現
Reading specs from
/usr/local/gcc333/lib/gcc-lib/x86_64-redhat-linux/3.3.3/specs
Configured with: ./configure --prefix=/usr/local/gcc333 : (reconfigured)
./configure --prefix=/usr/local/gcc333 --enable-threads=posix
--disable-checking --enable--long-long --host=x86_64-redhat-linux
--with-system-zlib --enable-languages=c,c++,java
Thread model: posix
gcc version 3.3.3
這樣是有安裝成功嗎?
但是我在一般隨便的目錄下gcc -v 還是gcc version 4.1.2 完全沒改變....
不知道要怎麼切換gcc版本?
我Makefile檔讓 CXX = g++-3.3
compile後出現下面的錯誤:
make[1]: g++-3.3: Command not found
make[1]: *** [lexbench.o] Error 127
這是代表我不適用gcc3.3.3 compile的意思嗎?
新手求救QQ 問題如果很笨 請多多原諒><
非常謝謝各位~
--
▄ ▆ ● ◤ ●
◢ ˙ ˙ ◣ ● ▼◥ ▲●
◆◣ ◤◆ 上吧,藍胖!! ● ▲●
◥ \◤' (OwQ )
◣ ◣ ◤ ) ) ﹀ \ \ ◣
vcfsvjf ◣ 〈 ◤◤◤◥
--
Tags:
Linux
All Comments

By Noah
at 2010-11-30T08:58
at 2010-11-30T08:58

By Heather
at 2010-11-30T17:58
at 2010-11-30T17:58

By Daph Bay
at 2010-12-02T01:24
at 2010-12-02T01:24

By Frederica
at 2010-12-04T21:10
at 2010-12-04T21:10

By Mia
at 2010-12-08T20:09
at 2010-12-08T20:09

By Megan
at 2010-12-12T04:03
at 2010-12-12T04:03

By Yedda
at 2010-12-13T15:02
at 2010-12-13T15:02

By Valerie
at 2010-12-18T05:45
at 2010-12-18T05:45

By Enid
at 2010-12-20T05:32
at 2010-12-20T05:32
Related Posts
碩士大考驗-磁諜分割與容量

By Frederica
at 2010-11-29T20:51
at 2010-11-29T20:51
ubuntu ssh基本問題

By Rachel
at 2010-11-29T17:52
at 2010-11-29T17:52
linux使用rsync進行差異備份

By Franklin
at 2010-11-29T17:22
at 2010-11-29T17:22
碩士大考驗-磁諜分割與容量

By Jacob
at 2010-11-29T15:54
at 2010-11-29T15:54
自動掛載突然失效

By William
at 2010-11-29T12:45
at 2010-11-29T12:45