Thanks Ivan, The instruction on Posit are almost identical to those in R except they add a version folder to be able to instyall multiple R's in parallel. I do not think this is the reason.
I apparently fixed my 4.1.3 issue by adding a symlink R in /usr/lib64/ pointing to /opt/R/${R_VERSION}/lib64/R folder This additional symlink is not detailed in the doc(s) and apparently takes care of re-establishing the link to lib and source files when running R. I now do not have errors anymore and it even works inside RStudio Thanks a lot for your help, hoep this can help others with the same issue. Stephane ============= On 05/01/2023, 17:52, "Ivan Krylov" <krylov.r...@gmail.com> wrote: On Thu, 5 Jan 2023 08:23:52 +0000 Stéphane Plaisance <stephane.plaisa...@vib.be> wrote: > I finally went for the build from source as detailed on the RStudio > site (https://docs.posit.co/resources/install-r-source/). The official installation manual can be found at <https://cran.r-project.org/doc/manuals/r-release/R-admin.html>, not at the Posit website. > $ ./configure \ > --prefix=/opt/R \ > --enable-memory-profiling \ > --enable-R-shlib \ > --with-blas \ > --with-lapack > $ make > $ make check > $ sudo make install This should have worked. In fact, I cannot reproduce your problem on my own: with the same command line, R passes the check and runs both from the build directory as ./bin/R and (after a `make install`) from the prefix I specified. > $ bin/R > Error in gzfile(file, "rb") : cannot open the connection > In addition: Warning message: > In gzfile(file, "rb") : > cannot open compressed file '/usr/lib64/R/library/base/R/base.rdx', > probable reason 'No such file or directory' Something about remembering the prefix must have gone horribly wrong, making your build of R confused enough to go looking for its files in the wrong directory. Do you have any lingering R-related environment variables set? Does `env | grep R` show anything useful? Is there anything useful about the prefix in config.log? Do the generated files src/scripts/R.fe and bin/R contain the right value of the R_HOME_DIR variable? > [[alternative HTML version deleted]] When you compose your messages in HTML, we only get the plain text version automatically generated by your mailer. This transformation is sometimes lossy: https://stat.ethz.ch/pipermail/r-help/2023-January/476610.html -- Best regards, Ivan ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.