上回用了比較複雜的方法來升級gcc,昨天找到另外一個更簡易的方法,方法如下,如法炮製.
#wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
#rpm --import http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern
#yum install devtoolset-2-gcc-c++-4.8.2-15.1.el6
以上步驟做完後,在/etc/profile裡加上這一行
source /opt/rh/devtoolset-2/enable
然後在terminal裡輸入以下就行了
#source /etc/profile
檢查gcc版本
#gcc --version
相關網頁: https://gist.github.com/stephenturner/e3bc5cfacc2dc67eca8b
在那網頁裡也有網友說可以直接用devtoolset-3,我還沒試.
沙巴水门案大结局
-
历经10年,本州水门案终于有了个了结(请看*《本土水门案》*20161010)。
时任州水务局总监阿旺达希(Ag Tahir
Talib)面对12项金额4500万令吉洗黑钱控罪成立,被判坐牢96年(同期执行8年)及罚款2.8亿,第二被告弗希雅(Fauziah
Piut)及第三被告林南炳无罪释放。弗希雅为阿...
13 小時前
