I am using RRstudio 4.2.1 and I am trying to install the terra package.
Unfortunately, I get following error that I don't understand
Error: package or namespace load failed for ‘terra’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object 'my_path_here/R/x86_64-pc-linux-gnu-library/4.2/terra/libs/terra.so':
libproj.so.25: cannot open shared object file: No such file or directory
I haven't came across this error again, so I would like some help!
P.S when I am trying installing it from the terminal, I get the following in the middle of installation :./proj_conf_test: error while loading shared libraries: libproj.so.25: cannot open shared object file: No such file or directory
Thanks!
Related
My R version is 4.1.2. It seems that I successfully install gsl package, but when I run library(gsl), I get following error:
Error: package or namespace load failed for ‘energy’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/public/home/username/localR/lib64/R/library/gsl/libs/gsl.so':
libgsl.so.25: cannot open shared object file: No such file or directory
Only this package has the error above. Meanwhile, when I try to use the packages related to it(e.x. energy), R will occur the same error. However, other packages are not affected.
Thanks.
Until yesterday, I could run library(car) just fine. But after running yay -Syyu and upgrading as many packages as I can, this no longer works.
> library(car)
Loading required package: carData
Error: package or namespace load failed for ‘car’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/my-name/R/x86_64-pc-linux-gnu-library/4.0/stringi/libs/stringi.so':
libicui18n.so.68: cannot open shared object file: No such file or directory
I am running this on Arch Linux.
We can install the 'stringi' package
install.packages('stringi')
I'm working in a SLURM server without root permission and I'm trying to load some R packages ('sp') to perform some analysis.
However, when I load the package I obtain the following error:
Loading required package: sp
Error: package or namespace load failed for ‘sp’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/tools/R/R-3.6.1/lib64/R/library/sp/libs/sp.so':
libproj.so.0: cannot open shared object file: No such file or directory
I checked where libproj.so.0 is located and I got these results:
/usr/lib64/libproj.so.0
/usr/lib64/libproj.so.0.7.0
My guess, by checking on similar problems on stackoverflow, is that I should create a symbolic link between /usr/lib64/libproj.so.0 and /usr/local/lib. However, I do not have root permission to do it successfully.
Any suggestion on how to solve the problem?
I was trying to install the package igraph in R using the command install.packages("igraph"). After the installation, during testing phase it showed the following error:
testing if installed package can be loaded Error: package or namespace
load failed for ‘igraph’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object
'/home/midhun/R/x86_64-redhat-linux-gnu-library/3.5/igraph/libs/igraph.so':
libicui18n.so.58: cannot open shared object file: No such file or
directory Error: loading failed Execution halted ERROR: loading
failed
removing ‘/home/midhun/R/x86_64-redhat-linux-gnu-library/3.5/igraph’
The downloaded source packages are in
‘/tmp/RtmpLVDism/downloaded_packages’ Warning message: In
install.packages("igraph") : installation of package ‘igraph’ had
non-zero exit status
Why this is happening? What could be a solution?
The library igraph requires library files such as:
libicui18n.so.58, libicuuc.so.58, libgfortran, etc.
These were either not installed in the proper library folder or were existing as previous versions. For example, in my case, libicuuc.so.58 was required to be installed in usr/lib64. Make sure that dependencies are installed correctly to solve such problems.
I recently updated my R (on Mac) from Version 3.0.2 to 3.1.1. I tried to load a package by using library(WRScpp)
But I got an error as shown below:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/WRScpp/libs/WRScpp.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/WRScpp/libs/WRScpp.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.0/Resources/lib/libRlapack.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/WRScpp/libs/WRScpp.so
Reason: image not found
Error: package or namespace load failed for ‘WRScpp’
It seems that R tried to load libRlapack.dylib by looking for it in the wrong directory (it looked for it in the Version 3.0 directory). I wonder what can be done to direct R to search the correct directory?