[問題] gcc版本更改 4.4.1 => 3.3.3

看板Linux作者 (malaymo)時間16年前 (2009/10/28 14:55), 編輯推噓1(102)
留言3則, 1人參與, 最新討論串1/1
新手發文 有先爬文過 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 呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.165.163.14

10/28 15:14, , 1F
你去/usr/bin ls -l看看就會發現其實gcc,g++都只是symbol
10/28 15:14, 1F

10/28 15:16, , 2F
link 所以你把g++砍了 用sudo ln -s g++-3.xx g++不知道
10/28 15:16, 2F

10/28 15:17, , 3F
這樣OK嗎? 我是用ubuntu的
10/28 15:17, 3F
文章代碼(AID): #1Av-hj14 (Linux)