Hi,
I need to build rpy on our cluster. Therefore I can only build stuff
in my home directory.
I have successfully installed Python, numpy and R in my home. Now I am
running into problems with rpy.
I configured R as follows:

./configure --prefix=/home/wligtenb/R --enable-R-shlib
make prefix=/home/wligtenb/R
make prefix=/home/wligtenb/R install

This seems to have worked fine.
Now I have added the following line to my bashrc:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/R/bin

And I am now trying:
python setup.py install --prefix=/home/wligtenb/Python

This results in the following error message:

python setup.py install --prefix=/home/wligtenb/Python
RHOMES= []
DEBUG= True
Setting RHOMES to  ['/home/wligtenb/R/lib64/R']
### Using R verion 2.9.2 installed at /home/wligtenb/R/lib64/R ###
RHOME= /home/wligtenb/R/lib64/R
copying src/rpymodule.c -> src/rpymodule2092.c
copying src/R_eval.c -> src/R_eval2092.c
copying src/io.c -> src/io2092.c
running install
running build
running build_py
running build_ext
building '_rpy2092' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC -DWITH_NUMERIC=3
-DPY_ARRAY_TYPES_PREFIX=PyArray_ -DRPY_SHNAME=_rpy2092
-DINIT_RPY=init_rpy2092 -UPRE_2_2 -I/home/wligtenb/R/lib64/R/include
-Isrc -I/usr/share/R/include
-I/home/wligtenb/Python/lib/python2.6/site-packages/numpy/core/include
-I/home/wligtenb/Python/include/python2.6 -c src/rpymodule2092.c -o
build/temp.linux-x86_64-2.6/src/rpymodule2092.o -shared
In file included from src/RPy.h:57,
                 from src/rpymodule2092.c:51:
/home/wligtenb/R/lib64/R/include/R_ext/Rdynload.h:26: warning:
function declaration isn't a prototype
In file included from src/rpymodule2092.c:51:
src/RPy.h:77:51: Rdevices.h: No such file or directory
src/rpymodule2092.c:1565: warning: initialization from incompatible pointer type
src/rpymodule2092.c:1568: warning: `intargfunc' is deprecated
(declared at /home/wligtenb/Python/include/python2.6/object.h:139)
src/rpymodule2092.c:1568: warning: initialization from incompatible pointer type
src/rpymodule2092.c:1569: warning: `intintargfunc' is deprecated
(declared at /home/wligtenb/Python/include/python2.6/object.h:140)
src/rpymodule2092.c:1569: warning: initialization from incompatible pointer type
src/rpymodule2092.c:1570: warning: initialization from incompatible pointer type
src/rpymodule2092.c: In function `r_finalize':
src/rpymodule2092.c:1782: warning: implicit declaration of function
`Rf_KillAllDevices'
src/rpymodule2092.c:1788: warning: implicit declaration of function
`R_CleanTempDir'
src/rpymodule2092.c:1775: warning: unused variable `buf'
src/rpymodule2092.c:1776: warning: unused variable `tmpdir'

error: command 'gcc' failed with exit status 1

Help is greatly appreciated.

Cheers,

Willem Ligtenberg

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to