On 30 March 2010 at 14:11, Emmanuel Bastien wrote:
| Hi,
| On a fresh install of python-rpy2 from Squeeze, the R shared library
| is not found:
| 
| Python 2.5.5 (r255:77872, Feb  2 2010, 00:25:36)
| [GCC 4.4.3] on linux2
| Type "help", "copyright", "credits" or "license" for more information.
| >>> import rpy2.robjects as ro
| Traceback (most recent call last):
|   File "<stdin>", line 1, in <module>
|   File "/usr/lib/python2.5/site-packages/rpy2/robjects/__init__.py",
| line 12, in <module>
|     import rpy2.rinterface as rinterface
|   File "/usr/lib/python2.5/site-packages/rpy2/rinterface/__init__.py",
| line 75, in <module>
|     from rpy2.rinterface.rinterface import *
| ImportError: libR.so: cannot open shared object file: No such file or 
directory
| 
| To work around this problem, I had to feed ldconfig with the
| /usr/lib64/R/lib path by creating a file R-x86_64.conf in /etc/ld.so.conf.d.

I actually had a similar issue on a machine of mine and solved it the same
way. I will look at this again when I start preparing R 2.11 pre-releases in
the next few days. 

I disabled this in Sep 2009 as Debian Policy now discourages these files.
But it breaks uses such as RPy or my own Rcpp and littler.  I may need to
work on getting an exception for this.

Dirk

-- 
  Registration is open for the 2nd International conference R / Finance 2010
  See http://www.RinFinance.com for details, and see you in Chicago in April!



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to