Skip to content
Prev 2623 / 29559 Next

problem loading library sp on Rpy (solved!!!)

Hi to all
First I would like to thank all the replies that I had concerning the
problem of loading sp library from Rpy.

The problem with the library was caused by bad linking, so the best
solution was to reinstall R and Rpy, I followed these steps and it worked.
- Downloaded the new R-2.6.0, my previous version was 2.5.1
- R configure options: ./configure --with-gnu-ld --disable-fast-install
--enable-R-shlib --enable-BLAS-shlib
- Link from /usr/local/lib/R/lib/libR.so to /usr/local/lib and also
/usr/lib (just to be certain)
- downloaded the necessary packages
sp-0.9-14,sgeostat-1.0.21,e1071_1.5-1.6 and automap_0.4.1
- ldconfig
- Installed the packages using R CMD and not the install.packages() from
inside R
- Installed Rpy

So now my Python/Rpy can load the sp library without any problems
Thanks