Hi all, I have a problem with the GD module on Solaris 5.8 using Perl 5.6.1. I have installed Perl to /usr/local/bin/perl and /usr/app/perl is a symlink to fit in with certain conventions round here.
When compiling the GD module it asked me where libgd was installed, and I told it - /usr/local/lib. But now I have the problem below where libpng12.so.0 is not found unless the LD_LIBRARY_PATH variable is set. libpng.so.0 is is /usr/local/lib with libgd so I am not sure why it is not found. $ $ ./test.pl Can't load '/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/GD/GD.so' for module GD: ld.so.1: /usr/app/perl: fatal: libpng12.so.0: open failed: No such file or directory at /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206. at ./test.pl line 3 Compilation failed in require at ./test.pl line 3. BEGIN failed--compilation aborted at ./test.pl line 3. $ $ export LD_LIBRARY_PATH=/usr/local/lib $ $ ./test.pl $ $ cat ./test.pl #!/usr/app/perl use GD; Does anyone have any ideas or hints for me on how I can avoid having to set LD_LIBRARY_PATH before running any script that uses GD? TIA, Cheers, Jim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>