[R] R shared library (/usr/lib64/R/lib/libR.so) not found.
Jan T Kim
jttk|m @end|ng |rom goog|em@||@com
Thu Aug 23 13:09:46 CEST 2018
Hi Rolf & All,
I haven't built R in a while, but my general expectation of an
autotools based build & install would be that the default prefix
is /usr/local, rather than /usr. So I'd expect the shared libs
in /usr/local/lib, /usr/local/lib64 etc.
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.
Depending on your <various flags> this may be irrelevant, apologies
in that case.
Best regards, Jan
On Thu, Aug 23, 2018 at 10:57:35PM +1200, Rolf Turner wrote:
>
> I *think* that this is an R question (and *not* an RStudio question!)
>
> I have, somewhat against my better judgement, decided to experiment with
> using RStudio.
>
> I downloaded and install RStudio. Easy-peasy. Nice lucid instructions.
>
> Then I tried to start RStudio ("rstudio" from the command line)
> and got a pop-up window with the error message:
>
> >R shared library (/usr/lib64/R/lib/libR.so) not found. If this
> >is a custom build of R, was it built with the --enable-R-shlib option?
>
> Oops, no, I guess it wasn't. So I carefully did a
>
> sudo make uninstall
> make clean
> make distclean
>
> and then did
>
> ./R-3.5.1/configure <various flags>
>
> making sure I added the --enable-R-shlib flag.
>
> Then I did make and sudo make install. It all seemed to go ...
> but then I did
>
> rstudio
>
> again and got the same popup error.
>
> There is indeed *no* libR.so in /usr/lib64/R/lib.
>
> There *is* a libR.so in /usr/lib/R/lib, but (weirdly) ls -l reveals that it
> dates from the my previous install of R-3.5.1 for which I *did not*
> configure with --enable-R-shlib.
>
> Can anyone explain to me WTF is going on?
>
> What should I do? Just make a symbolic link from /usr/lib/R/lib/libR.so to
> /usr/lib64/R/lib/libR.so?
>
> It bothers me that /usr/lib/R/lib/libR.so was not "refreshed" from my
> most recent install of R.
>
> I plead for enlightenment.
>
> cheers,
>
> Rolf Turner
>
> P.S. I'm running Ubuntu 18.04. And the previous install of R was done under
> Ubuntu 18.04.
>
> R. T.
>
> --
> Technical Editor ANZJS
> Department of Statistics
> University of Auckland
> Phone: +64-9-373-7599 ext. 88276
>
> ______________________________________________
> R-help using 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.
More information about the R-help
mailing list