在Ubuntu 17.10上新安装CUDA 9.1后,我遇到了install.packages("forecast")
的错误,错误
#error -- unsupported GNU version! gcc versions later than 6 are not supported!
答案 0 :(得分:1)
我首先通过从命令行运行instructions here来解决此问题
sudo ln -s /usr/bin/gcc-6 /usr/local/cuda/bin/gcc
然后我收到了错误
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
这是因为GCC 6没有使用G ++。只需安装G ++ 6:
sudo apt-get install g++-6