Salut à tous,
je rencontre un problème avec le module rpy,
je viens d'installer R 2.13.0 et voici l'erreur que je rencontre :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 python setup.py install RHOMES= [] DEBUG= True Setting RHOMES to ['/usr/local/lib/R'] Traceback (most recent call last): File "setup.py", line 109, in <module> RVERSION = rpy_tools.get_R_VERSION(RHOME, force_exec=True) File "/home/ben/rpy-1.0.3/rpy_tools.py", line 103, in get_R_VERSION raise RuntimeError("Couldn't obtain version number from output\n" RuntimeError: Couldn't obtain version number from output of `R --version'.
J'ai respecté la procédure d'install du README :
mais quelquechose ne va pas
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 To install RPy follow the steps: (a) First of all, you *must* check that you have built R with the configure option '--enable-R-shlib', in order to make R as a shared library. If not, the following steps should be enough: <go to the R source directory> make distclean ./configure --enable-R-shlib make make install (Solaris users, please, see the note (a) below.) (b) Then, configure the path to the R library. You have several ways to do this (substitute RHOME with the path where R is installed, usually /usr/local/lib/R): o make a link to RHOME/bin/libR.so in /usr/local/lib or /usr/lib, then run 'ldconfig', o or, put the following line in your .bashrc (or equivalent): export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:RHOME/bin o or, edit the file /etc/ld.so.conf and add the following line: RHOME/bin and then, run 'ldconfig'. (c) Now, just type: python setup.py install
quelqu'un a une idée, je ne suis pas un expert en R ...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 R --version R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under the terms of the GNU General Public License version 2. For more information about these matters see http://www.gnu.org/licenses/.
ps : je suis sous opensuse 11.4
merci d'avance,
ben
Partager