在Ubuntu 14.04上,值得信赖:install.packages('topicmodels')
错误信息:
compilation terminated.
make: *** [ctm.o] Error 1
ERROR: compilation failed for package ‘topicmodels’
* removing ‘/home/.../R/x86_64-pc-linux-gnu-library/3.1/topicmodels’
The downloaded source packages are in
‘/tmp/Rtmp1L79dj/downloaded_packages’
Warning message:
In install.packages("topicmodels") :
installation of package ‘topicmodels’ had **non-zero exit status**
最佳答案
我发现在我的两个Ubuntu安装中,非零退出状态是由于没有gsl
软件包引起的。但是,我花了很长时间才弄清楚哪个版本可以解决该错误。
在终端中:sudo apt-get install libgsl0-dev