Ivan - Do you have any examples of how setting LD_RUN_PATH works?

I tried the following (as root):
export LD_RUN_PATH=/usr/local/lib
/usr/local/bin/python setup.py build_ext --inplace
/usr/local/bin/python setup.py install
/usr/local/bin/python
 >> import tables

and I get the same error as always!

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/root/<ipython console> in <module>()

/usr/local/lib/python2.5/site-packages/tables/__init__.py in <module>()
     54
     55 # Necessary imports to get versions stored on the Pyrex extension
---> 56 from tables.utilsExtension import getPyTablesVersion, getHDF5Version
     57
     58 __version__ = getPyTablesVersion()

ImportError: libhdf5.so.5: cannot open shared object file: No such file 
or directory

Ivan Vilata i Balaguer wrote:
> Michael Hearne (el 2008-09-18 a les 10:57:16 -0600) va dir::
>
>   
>> Francesc - I think I answered my own question.  I have to set it in the 
>> environment where I'll be running.
>>
>> Is there another way that this is accomplished?  I have another Linux 
>> system where I have pytables installed, and LD_LIBRARY_PATH is not set, 
>> and the import works just fine.  I installed pytables on that system (I 
>> think) using easy_install.
>>
>> I would prefer not to have to use environment variables, because I'll be 
>> running my code from a cron job, where account settings are frequently a 
>> problem...
>>     
>
> You can also use the LD_RUN_PATH at *build* time, which will hardwire
> the location of the HDF5 libraries in the built library so that you
> don't need to set LD_LIBRARY_PATH at runtime.  If you later relocate the
> HDF5 libraries, you'll need to use LD_LIBRARY_PATH, though.
>
> I remember having read somewhere that using LD_RUN_PATH is preferred...
>
> Good luck,
>
> ::
>
>   Ivan Vilata i Balaguer   @ Intellectual Monopoly hinders Innovation! @
>   http://www.selidor.net/  @     http://www.nosoftwarepatents.com/     @
>   
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pytables-users mailing list
> Pytables-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pytables-users
>   

-- 
------------------------------------------------------
Michael Hearne
[EMAIL PROTECTED]
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
------------------------------------------------------


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to