Dear list, I'm forwarding these 2 messages as suggested by the package developer.
My system is
sessionInfo()
R version 2.9.0 (2009-04-17) i486-pc-linux-gnu on Ubuntu 8.04, with r-base-core, r-base-dev and r-recommended installed from binaries through Synaptic. I normally install the rest of packages using install.packages() from within R (started from an xterminal by su) Agus -----Message 1-----
Dear Martin, I'm trying to install packages robustbase and mvoutlier on ubuntu 8.04 but get the following problem: gcc -std=gnu99 -shared -o robustbase.so R-rng4ftn.o init.o lmrob.o mc.o qn_sn.o rf-common.o rffastmcd.o rfltsreg.o wgt_himed.o -L/usr/lib/R/lib -lRlapack -lblas -L/usr/lib/gcc/i486-linux-gnu/4.2 -lgfortran -lm -L/usr/lib/gcc/i486-linux-gnu/4.2 -lgfortran -lm -L/usr/lib/R/lib -lR /usr/bin/ld: cannot find -lRlapack collect2: ld returned 1 exit status Nevertheless, I do have Rlapack: ~$ R CMD config LAPACK_LIBS -L/usr/lib/R/lib -lRlapack
----Message 2------ -------- Original Message -------- Subject: Re: Problem at instaling robustbase (Rlapack) Date: Mon, 11 May 2009 19:06:34 +0200 From: Agustin Lobo <agustin.l...@ija.csic.es> Reply-To: agustin.l...@ija.csic.es To: Martin Maechler <maech...@stat.math.ethz.ch> References: <4a084a73.10...@gmail.com> <18952.22171.706662.231...@lynne.math.ethz.ch> Martin, Thanks for your prompt answer. 1.I've used
install.packages("robustbase")
I've verified ~$ R CMD config LAPACK_LIBS -L/usr/lib/R/lib -lRlapack Then I've seen that I actually do not have Rlapack: # ls -l /usr/lib/R/modules total 596 -rw-r--r-- 1 root root 44912 2009-04-17 18:44 internet.so -rw-r--r-- 1 root root 30980 2009-04-17 18:44 lapack.so -rw-r--r-- 1 root root 136812 2009-04-17 18:44 R_X11.so -rw-r--r-- 1 root root 383056 2009-04-17 18:44 vfonts.so Which seems in contradiction with the R CMD command. Then I've done: cd /usr/lib/R/modules sudo ln -sf ./lapack.so ./libRlapack.so But this does not solve the problem 2. I've seen that there's a binary in Synaptic, I've installed it, seems ok, but then I get:
require(robustbase)
Loading required package: robustbase Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/usr/lib/R/site-library/robustbase/libs/robustbase.so': libRlapack.so: cannot open shared object file: No such file or directory unless I actually start R from within /usr/lib/R/modules, in which case it works but cannot install mvoutlier (my ultimate goal) anyway:
install.packages("mvoutlier")
Warning in install.packages("mvoutlier") : argument 'lib' is missing: using '/usr/local/lib/R/site-library' trying URL 'http://cran.es.r-project.org/src/contrib/mvoutlier_1.4.tar.gz' Content type 'application/x-gzip' length 678736 bytes (662 Kb) opened URL ================================================== downloaded 662 Kb * Installing *source* package ‘mvoutlier’ ... ** R ** data ** preparing package for lazy loading Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/usr/lib/R/site-library/robustbase/libs/robustbase.so': libRlapack.so: cannot open shared object file: No such file or directory Error : package 'robustbase' could not be loaded ERROR: lazy loading failed for package ‘mvoutlier’ * Removing ‘/usr/local/lib/R/site-library/mvoutlier’ The downloaded packages are in ‘/tmp/RtmpP0QfJ6/downloaded_packages’ Warning message: In install.packages("mvoutlier") : installation of package 'mvoutlier' had non-zero exit status 3. # R CMD INSTALL robustbase Warning: invalid package ‘robustbase’ Agus
_______________________________________________ R-SIG-Debian mailing list R-SIG-Debian@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-debian