Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'libRblas.so: No such file or directory' during package installation #63

Closed
jay-sf opened this issue Jul 13, 2022 · 3 comments
Closed

Comments

@jay-sf
Copy link

jay-sf commented Jul 13, 2022

Hi,

first of all thanks for maintaining this great package!

On Ubuntu 22.04 LTS with a freshly installed R using the regular sudo apt install r-base-core I tried to install.packages('imputeTS') and received this error:

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/jay/R/x86_64-pc-linux-gnu-library/4.2/fracdiff/libs/fracdiff.so':
  libRblas.so: cannot open shared object file: No such file or directory
Calls: <Anonymous> ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
Execution halted

The sessionInfo(), though, shows that BLAS and LAPACK actually are find OpenBLAS which I think is what libRblas.so is referring to.

R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so

I elaborate on this a little further in this Stack Overflow question. There is an answer that suggests a package bug which is why I'm opening a ticket here.

Thanks for any help!

All the best

@SteffenMoritz
Copy link
Owner

SteffenMoritz commented Jul 14, 2022

Hello jay, thanks for reporting your issue!
(the world needs people reporting issues to keep the package quality up 👍 )

Does the following work:
install.packages('fracdiff')

And if this works, please try installing imputeTS afterwards again :)

From the error message it seems like the error is rather related to fracdiff, which is rather deep in the dependency tree (imputeTS imports the forcast package, which imports fracdiff).

So I would assume some combination from fracdiff and some weird local installation/configuration things ... which would be nothing, with which I could help.

But would be great if we could indeed make sure this issue is not directly related to imputeTS code.

@jay-sf
Copy link
Author

jay-sf commented Jul 14, 2022

Thanks a ton, Steffen!

Your comment brought me on the right track, I installed fracdiff as suggested and tried to install imputeTS thereafter. The error occurred three more times with quadprog, tseries, forecast. So I suspected right that I had fabricated some clash while switching from locally compiled R to R installed from an apt repository. Since I could assume that this would happen again and again, the best thing was to purge R and descendants completely from the system and reinstall everything, which appears to have worked well! Also imputeTS is back :)

So that those who run into similar problems can benefit from it I put the how-to together in my answer on Stack Overflow.

All the best, J

@SteffenMoritz
Copy link
Owner

Perfect! @jay-sf I'll close the issue since it is resolved. By the way, great post on Stack Overview 👍 Really great and detailed explanation for R users that also face this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants