[l2h] pnmtopng problem

Seth Rogers Seth Rogers <rogers@rtna.daimlerchrysler.com>
Wed, 28 Jul 1999 04:00:15 -0700 (PDT)


The problem is probably in your LD_LIBRARY_PATH.  When you have
executables that use shared objects (.so), the OS searches the directories
in your environemnt variable LD_LIBRARY_PATH for the the necessary
libraries.  Try adding /home/ell201/netpbm/lib to it.  Good luck.

--Seth

On Wed, 28 Jul 1999, Ellis, Nick (Marine, Cleveland) wrote:

> Dear latex2html community,
> 
> I've run into some trouble trying to use latex2html and the problem is in
> the installation of pnmtopng. I realize this is somewhat off-topic for this
> list, but I'm hoping someone has had experience with this issue. And the
> only reason I installed pnmtopng was to use latex2html anyway!
> 
> The problem:
> I'm having trouble getting pnmtopng running on my machine. It's a Solaris
> machine, System V version 4.0. The program appears to install correctly, but
> it gives an error message when I try to run it. I've included a fragment
> from the output of the latex2html command in case it's relevant. The place
> where it breaks down is a pipe, which I've broken into 2 commands here:
> 
> unix% /home/ell201/netpbm/bin/ppmquant -floyd 256 < image017.ppm > tmp
> ppmquant: making histogram...
> ppmquant: 16 colors found
> ppmquant: choosing 256 colors...
> ppmquant: mapping image to new colors...
> unix% /home/ell201/netpbm/bin/pnmtopng < tmp
> ld.so.1: /home/ell201/netpbm/bin/pnmtopng: fatal: libpng.so.2: can't open
> file:
> errno=2
> Killed
> 
> As you can see, if I run these commands in isolation I get the same problem.
> 
> The only ideas I've had as to the cause of the problem is the non-standard
> directory structure. That is the .a files are in a different part of the
> directory tree from the .h files and the binaries are all together in
> netpbm/bin. See makefile for -L and -I options. Another idea is maybe I'm
> missing some compiler or link option specific to Solaris systems.
> 
> Any pointers would be gratefully received. 
> 
> Thanks for reading.
> 
> Nick Ellis