On 20 March 2009 at 18:45, Agustin Lobo wrote:
| Hi!
| 
| I'm installing rpy2 on a machine with ubuntu 8.04, having both R-base 
| and R-base-dev
| 
| When I run
|   python setup.py install
| I get
| /usr/bin/ld: cannot find -lRlapack
| collect2: ld returned 1 exit status
| error: command 'gcc' failed with exit status 1
| 
| I do have lapack.so in
| in /usr/lib/R/modules
| and Lapack.h
| in /usr/share/R/include/R_ext
| as well as liblapack*.* in /usr/lib
| 
| what's wrong? I just made the same installa on another machine with 
| ubuntu 8.04 and worked fine.

This changed when the newer Fortran compiler and newer Atlas/Lapack were
used.  You can see for yourself:

       $ R CMD config BLAS_LIBS
       -lblas
       $ R CMD config LAPACK_LIBS
       -llapack

Not -lRlapack but -llapack.  FWIW my system (at work) is Ubuntu 8.10:

$ dpkg -l r-base-core
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  r-base-core    2.8.1-1intrepi GNU R core of statistical computation and gr

I maintain RPy2 in Debian, if you know the tricks you can just fetch the
source package from there and rebuild it on your Ubuntu system. I do that
with a few things that I want to be even more current than the Ubuntu cycle
(and the excellent contributed/ported R packages via CRAN).

Otherwise, just edit setup.py and try again.

Hth,  Dirk

-- 
Three out of two people have difficulties with fractions.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to