Closed blackhill86 closed 1 year ago
It looks like the system library locations are not being passed to the linker correctly. In your ouput you have:
g++ -std=gnu++14 -g -O2 -ffile-prefix-map=/build/r-base-4xhVZt/r-base-4.2.1=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fpic -I"" -c snappy.cc
on my Linux Mint machine the same line is:
g++ -std=gnu++14 -march=native -fpic -I/usr/local/include -I"/mnt/data/R-lib/4.2-bioc_3.16/Rhdf5lib/include" -c snappy.cc
The important part is that I have -I/usr/local/include -I"/mnt/data/R-lib/4.2-bioc_3.16/Rhdf5lib/include"
and you have -I""
, indicating that the configure step isn't finding the correct loctions on your machine.
These are dectected in https://github.com/grimbough/rhdf5filters/blob/697eaa248f4227f00ff30b952b6abfbac87019aa/configure.ac#L17-L36
What do you get if you run the following two lines in a terminal?
R CMD config CPPFLAGS
Rscript -e 'cat(system.file("include", package="Rhdf5lib"))'
Thanks for the quick answer, I installed Rdhf5lib
but you are right, library paths are missing, this is what I get:
Rscript -e 'cat(system.file("include", package="Rhdf5lib"))'
Rscript execution error: No such file or directory
But, If I do it opening R I get this:
cat(system.file("include", package="Rhdf5lib"))
/home/esteban/R/x86_64-pc-linux-gnu-library/4.2/Rhdf5lib/include
I guess I'll check all the locations you listed above.
How did you install R? Was it via a package manager or did you build it yourself?
I think when I've encoutered the "Rscript execution error: No such file or directory" error, it's because the R binary has been moved from the location it was in when Rscript was created.
I installed it with the package manager sudo apt install r-base
. You are right, I never use Rscript on my local computer, that's why I didn't notice it is not located. In fact, that's the main problem in this issue. I will try to google how to fix the problem. I believe it is something related to root permissions administrated by Pop Os!
I've found the solution. The problem is Pop Os! assigns Rscript to root group and root ownership, I changed both (group and ownership) to my user, and it didn't work for a reason I still don't understand. I had to run R with sudo which installs all packages on '/usr/local/lib/R/site-library'. This is not an ideal solution, but it worked.
Thanks for your help. It was not an issue with the package, it was Linux permissions.
Hello! I hope the developers can help me with this issue. I've been trying to install
rhdf5filters
because it is a dependency forrhdf5
library. However, when I try to installrhdf5filters
I see the following message:I already tried updating
R
, also I tried with the devel version also tried GitHub version. I don't think it is my gcc library because other packages are running fine, but I'm willing to try possible solutions. This is my session info, thanks for any help you can suggest.