Hi all.
I'm compiling the devel version of R on Debian GNU/Linux, and installing it into /usr/local tree (instead of default /usr). So:
./configure --prefix=/usr/local/
make
make install
Everything works fine, but when I start R I get the following error messages (traslated from italian, sorry):
Error in dyn.load(x,as.logical(local),as.logical(now)):
impossible to load the shared library '/usr/lib/R/library/stats/libs/stats.so':
libR.so:cannot open shared object file: No such file or directory
Error in dyn.load(x,as.logical(local),as.logical(now)):
impossible to load the shared library '/usr/lib/R/library/methods/libs/methods.so':
libR.so:cannot open shared object file: No such file or directory
and
package stats in options("defaultPackages") was not found
package methods in options("defaultPackages") was not found
Looks like it's look into the wrong directory tree. But why? Where am I going wrong?
TIA,
Stefano
compiling & installing R devel version on Debian
3 messages · stefano iacus, Brian Ripley
On Thu, 14 Apr 2005, Stefano Calza wrote:
Hi all. I'm compiling the devel version of R on Debian GNU/Linux, and installing it into /usr/local tree (instead of default /usr). So:
The default *is* --prefix=/usr/local (no trailing space). Are you sure you are not getting R confused with some other version, e.g. by having R_LIBS set to point to your other installation?
./configure --prefix=/usr/local/ make make install Everything works fine, but when I start R I get the following error messages (traslated from italian, sorry):
If it passes `make check' then the build is fine, you are just not using it. Please do try make check before installation.
Error in dyn.load(x,as.logical(local),as.logical(now)):
impossible to load the shared library '/usr/lib/R/library/stats/libs/stats.so':
libR.so:cannot open shared object file: No such file or directory
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Thanks to Prof. Ripley I solved it. Actually it was my (stupid) fault. In .Renviron I actually set R_LIBS Thanks again Stefano
On Thu, Apr 14, 2005 at 11:07:00AM +0100, Prof Brian Ripley wrote:
<Prof>On Thu, 14 Apr 2005, Stefano Calza wrote:
<Prof> <Prof>>Hi all. <Prof>> <Prof>>I'm compiling the devel version of R on Debian GNU/Linux, and installing <Prof>>it into /usr/local tree (instead of default /usr). So: <Prof> <Prof>The default *is* --prefix=/usr/local (no trailing space). Are you sure you <Prof>are not getting R confused with some other version, e.g. by having R_LIBS <Prof>set to point to your other installation? <Prof> <Prof>>./configure --prefix=/usr/local/ <Prof>>make <Prof>>make install <Prof>> <Prof>>Everything works fine, but when I start R I get the following error <Prof>>messages (traslated from italian, sorry): <Prof> <Prof>If it passes `make check' then the build is fine, you are just not using it. <Prof>Please do try make check before installation. <Prof> <Prof>>Error in dyn.load(x,as.logical(local),as.logical(now)): <Prof>> impossible to load the shared library <Prof>> '/usr/lib/R/library/stats/libs/stats.so': <Prof>>libR.so:cannot open shared object file: No such file or directory <Prof> <Prof>-- <Prof>Brian D. Ripley, ripley at stats.ox.ac.uk <Prof>Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ <Prof>University of Oxford, Tel: +44 1865 272861 (self) <Prof>1 South Parks Road, +44 1865 272866 (PA) <Prof>Oxford OX1 3TG, UK Fax: +44 1865 272595
Stefano Calza, PhD Sezione di Statistica Medica e Biometria Dip. di Scienze Biomediche e Biotecnologie Universit? degli Studi di Brescia - Italia Viale Europa, 11 25123 Brescia email: calza at med.unibs.it Telefono/Phone: +390303717532 Fax: +390303717488 Section of Medical Statistics and Biometry Dept. Biomedical Sciences and Biotechnology University of Brescia - Italy