centos6,gcc 4.8.2下出現expecting string instruction after `rep’的錯誤,解決方法:
you need to install devtoolset 2.1
then install devtoolset-libutils
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
執行上面的命令後問題就得到解決了。