在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**
brew install gsl
解决了我的问题(macOS 10.14.6)。 - iNyarsudo apt install libgsl-dev
命令解决了我的问题。 - Till