From: Francesc A. <fa...@py...> - 2008-09-18 08:15:16
|
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 |