[R] R shared library (/usr/lib64/R/lib/libR.so) not found.
Berwin A Turlach
berw|n@tur|@ch @end|ng |rom gm@||@com
Thu Aug 23 16:26:42 CEST 2018
On Thu, 23 Aug 2018 23:34:38 +1200
Rolf Turner <r.turner using auckland.ac.nz> wrote:
> I guess I should have said --- I did
> sudo make prefix=/usr install
> which puts stuff into /usr rather than into /usr/local.
I do not remember ever specifying "prefix=foo" at the make install
stage. Not for any software that uses autoconf &c.
I thought the prefix should be specified to ./configure and after that
I am pretty sure that the location of RHOME is set by the path
specified (explicitly or implicitly) to ./configure. If you then
install R at another location with your construct, some problems seem
to be pre-programmed. But I could be wrong.
> I forget exactly why I chose (in the dim distant past) to do this ...
> I have a vague recollection that my search path was more
> "comfortable" that way.
In my experience this is a false comfort. Set the search path so
that /opt/bin or /usr/local/bin is early on and finds programs you
install to those location.
Installing to /usr will sooner or later lead to tears if your program
"conflicts" with some Ubuntu package (which might have been installed
to satisfy the requirement of another package that you needed). If
that package is update during an "apt-get update", you can end up with
a broken system.
> > I also have a recollection that I once installed Rstudio for some
> > MOOC, and ended up putting a symlink in somewhere like /usr/lib* ,
> > because Rstudio was only available as a binary with the location
> > of the shared lib hard-baked into it.
The location is only hard-coded in relation to RHOME and with the
assumption that you are not using a sub-architecture on Ubuntu. AFAIK,
binary Ubuntu distributions of R do not use sub-architectures and there
should be no problem on an Ubuntu system as long as all software is
installed via Ubuntu. But this is probably a question better discussed
> So it looks like a symlink might be the answer for me.
Only if you can be sure that that libR.so is compatible with the R
version that you seem to be using. The official r-base-core package
from Ubuntu seems to be R 3.4.4. If you added the CRAN repository to
your Ubuntu system, you might have a newer version installed. But if
your installation is partly a self-compiled R-3.5.1 version that is
then linked to an R 3.4.4 libR.so in /usr/lib/R/lib/ (from
r-cran-base), you are inviting trouble.
More information about the R-help