gcc版本更改 4.4.1 => 3.3.3 - Linux

Table of Contents



新手發文 有先爬文過 Orz

小弟想把 fedora 11 的 gcc 和 g++ 版本由原本的 4.4.1 降為 3.3.3

做法是 copy fedora 2 裡 /usr/bin/gcc copy至 fedora 11 的相同位置

再把 fedora 2 裡 /usr/lib/gcc-lib資料夾 copy至 fedora 11一樣位置
( 但有幾個 symbolic link無法copy )

結果:

#gcc -v ( 與fedora 2一樣 )

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --disable-libunwind-exceptions --with-system-zlib
--enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

但 #g++ -v (還是 fedora 11 4.4.1的版本)

Using built-in specs.
Target: i586-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bu..

...中略

--build=i586-redhat-linux
Thread model: posix
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)

想請問大家怎麼也把 g++的版本降為 3.3.3 呢?


--

All Comments

Una avatarUna2009-11-01
你去/usr/bin ls -l看看就會發現其實gcc,g++都只是symbol
Zenobia avatarZenobia2009-11-03
link 所以你把g++砍了 用sudo ln -s g++-3.xx g++不知道
Charlie avatarCharlie2009-11-07
這樣OK嗎? 我是用ubuntu的