Menu

#1 ImportError: ld.so.1

closed
nobody
5
2012-07-18
2005-05-25
Anonymous
No

Hi,
I have just installed R 2.1.0 and Python2.3 onto my
Solaris 9.
I have also installed NumPy as recommended before
installing RPy. When running script.py that imports
RPy I get an error:
...
from rpy import *
File "/usr/local/lib/python2.3/site-packages/rpy.py",
line 38, in ?
import _rpy
ImportError: ld.so.1: python: fatal: libg2c.so.0: open
failed: No such file or directory

What is wrong and how can I fix it?
The only obvious discrepancy between my installation of
RPy and instructions in readme was that I couldn't
change the line
LIBR_LDFLAGS = -shared in Makeconf file simply because
there was no such line there.
Please, help.
Thanks
Anna
avlapuk@lbl.gov

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Hi,
    I have resolved the issue I had reported here and think that
    it'd be useful to post the resolution for others.
    The reason was that libg2c.so.0 library couldn't be found
    even though I had both gcc and g77 compilers installed
    previously and correctly. I have SPARC Solaris 9.
    So I have just added the path to this library in my .cshrc
    file along with the path to R library as it was recommended
    in installation of RPy:
    set LD_LIBRARY_PATH = ($LD_LIBRARY_PATH
    /usr/local/lib/R/bin/ /usr/local/lib)
    This seemed to has resolved the problem completely.
    Import rpy went fine without any errors.

    Anna

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry, wrong syntax. Should be:
    setenv LD_LIBRARY_PATH /usr/local/lib/R/bin/:/usr/local/lib

    Anna

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.