編譯錯誤:expecting string instruction after `rep'

centos6,gcc 4.8.2下出現expecting string instruction after `rep’的錯誤,解決方法:

  1. you need to install devtoolset 2.1

  2. then install devtoolset-libutils

  3. follow gnu build instuctions, should build fine now. 
    具體可以按照以下命令執行:

wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
yum install devtoolset-2-gcc devtoolset-2-binutilsyum install devtoolset-2-gcc-gfortran

執行上面的命令後問題就得到解決了。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章