Michael,

Have you tried the ld.so.conf option that I sent you privately (too fast 
cliking the 'reply' button).  Here it is again:

"""
Well, it depends on how you have installed HDF5 and which directories 
are configured in your system to be looked up for finding shared 
libraries.  With Linux, in general this is configured permanently by 
properly configuring the /etc/ld.so.conf so as to include the path to 
your HDF5 shared libraries.  Just do a "man ld.so" for more directions 
on this subject.
"""

This doesn't need you to define environment variables.

Francesc


A Thursday 18 September 2008, Michael Hearne escrigué:
> 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...
>
> Thanks,
>
> Mike
>
> Michael Hearne wrote:
> > Francesc - Thank you.  This is not mentioned anywhere in the README
> > - is that something that could be added?
> >
> > Also, do I have to make this export a _permanent_ part of my
> > installation, or am I just supposed to set this before building the
> > package?
> >
> > Thanks,
> >
> > Mike
> >
> > Francesc Alted wrote:
> >> Hi Mike,
> >>
> >> A Wednesday 17 September 2008, Michael Hearne escrigué:
> >>> Hi, new to the list.  I'm trying to get pytables installed on a
> >>> Red Hat Enterprise system, with a local copy of python 2.5. 
> >>> Pytables _seems_ to install successfully, giving me the output
> >>> below.
> >>>
> >>> However, when I try to use pytables, I get an error saying
> >>> "ImportError: libhdf5.so.5: cannot open shared object file: No
> >>> such file or directory".  Why does the installation process show
> >>> that it knows where the libraries are but the usage fail to find
> >>> them??
> >>
> >> Because you have directed it how to find the HDF5 libraries in
> >> compilation time (via the the --hdf5 flag), but not how to find
> >> them in execution time.  There are many ways to do this in Linux,
> >> but I normally use the LD_LIBRARY_PATH environment variable to
> >> point to where your libhdf5.so.5 file is.  For example:
> >>
> >> $ export LD_LIBRARY_PATH=/usr/local/hdf5/lib
> >>
> >> or similar, should work.  See the man page for 'ld' (the GNU
> >> linker) for more info on loading dynamic libraries.
> >>
> >> HTH,



-- 
Francesc Alted
Freelance developer
Tel +34-964-282-249

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to