安装'topicmodels'软件包时出错,退出状态为非零;的Ubuntu
问题描述:
在Ubuntu 14.04上,值得信赖:
On Ubuntu 14.04, trusty:
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
软件包引起的.但是,我花了相当长的时间才弄清楚哪个版本可以解决该错误.
I found out that on two of my Ubuntu installations, the non-zero exit status was caused by not having the gsl
package. However, it took me quite sometime before I could figure out which version would cure the error.
在终端中:sudo apt-get install libgsl0-dev