Skip to content
Prev 179960 / 398506 Next

robustbase: cannot install

This is really odd,
I've installed the binary of robustbase through synaptic on an ubuntu 
8.04 machine and get:
 > library(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
Error: package/namespace load failed for 'robustbase'
 >

The package is where it is suposed to be:
/usr/lib/R/site-library/robustbase

is this not a problem at compiling?

The problem is that if I try to install the source with 
install.packages("robustbase"), I get:
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

Despite the fact that I do have Rlapack:
~$ R CMD config LAPACK_LIBS
-L/usr/lib/R/lib -lRlapack

Am I doing something wrong?

Thanks

Agus