简体   繁体   中英

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.

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

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

Then the installation worked.

I am the author of the package.. Someone emailed me this error recently so looked through it I found this post.. fixed... and thanks for using the package and testing recommendation algorithms. Let me know how I can help. It's always great to see other folks researching personalization.

Feel free to contribute or open an issue in github and I will respond prompty. Apologies to Daniel who did report it earlier but I could explore at that time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM