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**
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With