Dirk, Thanks for helping the newbie out. It was the r-base-dev package that was missing on my system. I installed that package from the repository and rpy2 worked as advertised.
Cheers, Brian --- On Tue, 12/30/08, Dirk Eddelbuettel <e...@debian.org> wrote: From: Dirk Eddelbuettel <e...@debian.org> Subject: Re: [Rpy] rpy2 installation woes To: clowe...@yahoo.com, "RPy help, support and design discussion list" <rpy-list@lists.sourceforge.net> Date: Tuesday, December 30, 2008, 3:20 PM On 30 December 2008 at 14:03, B Clowers wrote: | Under Ubuntu Hardy Heron I've downloaded and installed the latest version of R (2.8.1). | I would very much like to get rpy2 working on my system but continue to | have installation problems related to the location of the lR, llapack, and | lblas libraries. In the latest version of R these libraries are not in the | directories specified during the installation of rpy2. After reading other | posts regarding this problem I've checked out the latest version of rpy2 | from SVN as revision 731. Unfortunately, this problem still exists. Can | anyone shed some light on how to fix this problem? [...] | running install | running build | running build_py | running build_ext | building 'rpy2.rinterface.rinterface' extension | gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.5/rpy/rinterface/array.o build/temp.linux-i686-2.5/rpy/rinterface/r_utils.o build/temp.linux-i686-2.5/rpy/rinterface/rinterface.o -L/usr/lib/R/lib -L/usr/lib/R/modules -Wl,-R/usr/lib/R/lib -Wl,-R/usr/lib/R/modules -lR -o build/lib.linux-i686-2.5/rpy2/rinterface/rinterface.so -L/usr/lib/R/lib -lR -llapack -lblas | /usr/bin/ld: cannot find -llapack | collect2: ld returned 1 exit status | error: command 'gcc' failed with exit status 1 Could it be that you did not install the -dev packages for lapack and friends? Try installing the r-base-dev package which will pull these in. For what it is worth, I added a package python-rpy2 to Debian to complement the existing python-rpy we had for years. This should also be in the next Ubuntu release. As you have the svn checkout, look at debian/control and make sure you have the packages listed in the Build-Depends line. You do not need at the texlive packages if you don't rebuild the documentation. Dirk PS Below is a snippet from the Debian build log for the most recent rpy2 package. building 'rpy2.rinterface.rinterface' extension creating build/temp.linux-i686-2.5 creating build/temp.linux-i686-2.5/rpy creating build/temp.linux-i686-2.5/rpy/rinterface gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -O2 -Wall -fPIC -DR_INTERFACE_PTRS=1 -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1 -I/usr/share/R/include -Irpy/rinterface -I/usr/share/R/include -I/usr/include/python2.5 -c rpy/rinterface/array.c -o build/temp.linux-i686-2.5/rpy/rinterface/array.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -O2 -Wall -fPIC -DR_INTERFACE_PTRS=1 -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1 -I/usr/share/R/include -Irpy/rinterface -I/usr/share/R/include -I/usr/include/python2.5 -c rpy/rinterface/r_utils.c -o build/temp.linux-i686-2.5/rpy/rinterface/r_utils.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -O2 -Wall -fPIC -DR_INTERFACE_PTRS=1 -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1 -I/usr/share/R/include -Irpy/rinterface -I/usr/share/R/include -I/usr/include/python2.5 -c rpy/rinterface/rinterface.c -o build/temp.linux-i686-2.5/rpy/rinterface/rinterface.o In file included from rpy/rinterface/rinterface.c:68: /usr/share/R/include/R_ext/Rdynload.h:26: warning: function declaration isn't a prototype rpy/rinterface/rinterface.c: In function 'EmbeddedR_exception_from_errmessage': rpy/rinterface/rinterface.c:473: warning: initialization discards qualifiers from pointer target type rpy/rinterface/rinterface.c: At top level: rpy/rinterface/array.h:9: warning: 'array_struct_get' used but never defined rpy/rinterface/rinterface.c:109: warning: 'interrupt_R' defined but not used rpy/rinterface/rinterface.c:2620: warning: 'externalMethods' defined but not used gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -O2 -Wall build/temp.linux-i686-2.5/rpy/rinterface/array.o build/temp.linux-i686-2.5/rpy/rinterface/r_utils.o build/temp.linux-i686-2.5/rpy/rinterface/rinterface.o -L/usr/lib/R/lib -L/usr/lib/R/modules -Wl,-R/usr/lib/R/lib -Wl,-R/usr/lib/R/modules -lR -o build/lib.linux-i686-2.5/rpy2/rinterface/rinterface.so -L/usr/lib/R/lib -lR -llapack -lblas | | | | | | ------------------------------------------------------------------------------ | _______________________________________________ | rpy-list mailing list | rpy-list@lists.sourceforge.net | https://lists.sourceforge.net/lists/listinfo/rpy-list -- Three out of two people have difficulties with fractions.
------------------------------------------------------------------------------
_______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list