Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while installing package from github in R. Error in dyn.load

I am trying to install the recommenderlabrats package from github to my SUSE Linux R-Server, using the straight forward:

devtools::install_github("sanealytics/recommenderlabrats")

However I do get an error message which I can't get wrap my head around.

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/ruser/R/x86_64-unknown-linux-gnu-library/3.2/recommenderlabrats/libs/recommenderlabrats.so':
  /home/ruser/R/x86_64-unknown-linux-gnu-library/3.2/recommenderlabrats/libs/recommenderlabrats.so: undefined symbol: dgels_
Error: loading failed
Execution halted
ERROR: loading failed

I guess it boils down to

undefined symbol: dgels_

After some stackoverflow- and google-search, I think it has something to do with Rcpp. I have version 0.12.0 installed. I tried to contact the author but didn't receive any feedback. I do get a similar error on my local windows machine.

Any help is appreciated.

like image 922
Daniel Schultz Avatar asked Jul 22 '26 06:07

Daniel Schultz


1 Answers

I ran into the same issue. According to @DirkEddelbuettel's comment, I added

Sys.setenv("PKG_LIBS" = "-llapack")

Then the installation worked.

like image 98
hao Avatar answered Jul 24 '26 00:07

hao



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!