So, if I got it right, I compile and install libpng in a local directory, point an environment variable MPLIB_BASE
to the /usr/local equivalent (not to the actual directory containing libpng.so, usually /usr/local/lib) and then run
python setup.py build
python setup.py install --prefix $HOME/local
This is getting really frustrating, did it, same error:
ImportError: /homes/morlet/aborghgr/local/lib/python2.3/site-packages/matplotlib/_nc_image.so: undefined symbol: png_set_sBIT
And png_set_sBIT is present in the local install of libpng, that one isn’t stripped of symbols.
···
On 10/13/05, Nadezhda Dencheva <dencheva@…86…> wrote:
As a final desperate act, install libpng from source in a new directory
and try linking to it (using MPLIB_BASE).
–
Alex Borghgraef
Ok, tried again with matplotlib 0.86, same error. But this time I dug a
bit deeper, and I noticed that the MPLIB_BASE environment variable was
only taken into account in the case of a solaris system, and I’m
working on linux. Which means that the build hadn’t linked to my
locally installed
libpng, but to the apparently defective global one. So I edited the
linux2 entry in “basedir” from setupext.py, and tried again, with
success this
time. So I think we can classify this as solved. Again, thanks for the help all.
···
On 10/19/05, Alexander Borghgraef <alexander.borghgraef.rma@…287…> wrote:
On 10/13/05, Nadezhda Dencheva <dencheva@…86…> wrote:
As a final desperate act, install libpng from source in a new directory
and try linking to it (using MPLIB_BASE).
So, if I got it right, I compile and install libpng in a local directory, point an environment variable MPLIB_BASE
to the /usr/local equivalent (not to the actual directory containing libpng.so, usually /usr/local/lib) and then run
python setup.py build
python setup.py install --prefix $HOME/local
This is getting really frustrating, did it, same error:
ImportError: /homes/morlet/aborghgr/local/lib/python2.3/site-packages/matplotlib/_nc_image.so: undefined symbol: png_set_sBIT
And png_set_sBIT is present in the local install of libpng, that one isn’t stripped of symbols.
–
Alex Borghgraef