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

↘锁芯ラ 提交于 2019-12-01 03:40:46

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

In this version of topicmodels, the build script contains the wrong file name:

install.packages("topicmodels")
Installing package into ‘/home/ga/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/topicmodels_0.2-6.tar.gz'
...
g++ -std=c++11 -shared -L/usr/lib/R/lib -L/usr/lib/x86_64-linux-gnu -lgsl -lglscblas -o topicmodels.so cokus.o common.o ctm.o dataset.o gsl-wrappers.o inference.o init.o lda-alpha.o lda-inference.o lda-model.o model.o rGibbslda.o rctm.o rlda.o utilities.o utils.o -L/usr/lib/x86_64-linux-gnu -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -lglscblas
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!