上回用了比較複雜的方法來升級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,我還沒試.
數位轉型,從舊筆電的Windows改成linux mint
-
學校裡有一車八年的舊款 HP 筆電,裝的是 Windows
OS,很奇怪,wifi網路連線的品質很差,總是經常斷線。因為一直不能解決,後來我看它也老了,微軟也即將不支援了,乾脆把它們全面遷移至 Linux
Mint。結果非常令人滿意,網路連線不僅變得穩定,課堂教學所需的 Arduino 開發、程式設計,甚至...
18 小時前
