Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing 'topicmodels' package, non zero exit status; Ubuntu

On Ubuntu 14.04, trusty:

install.packages('topicmodels')

Error message:

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**
like image 781
Andreas Avatar asked Sep 10 '14 06:09

Andreas


1 Answers

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.

In the terminal: sudo apt-get install libgsl0-dev

like image 143
Andreas Avatar answered Sep 25 '22 10:09

Andreas