Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

'500 Internal Server Error', when using 'GIFgraph'?

by Georgio (Sexton)
on Dec 19, 2004 at 10:46 UTC ( [id://415970]=perlquestion: print w/replies, xml ) Need Help??

Georgio has asked for the wisdom of the Perl Monks concerning the following question:

Hello all!

I have written some scripts with small graphics an year ago (using GIFgraph), and they all were working correctly on Apache server, where I have a hosting-account. But now - after some reinstallation on the server - I get '500 Internal Server Error'. I tried to resolve the problem with very simple script, using only GD::Graph::bars (VERSION 1.25), but the result was the same. If there is a line:

my $graph = GD::Graph::bars->new(...);

I get '500 Internal Server Error'.
When I tried to execute such type of script (***.pl), with the same line in it, using 'ssh-shell', I get the error:
'perl: relocation error: /usr/lib/perl5/site_perl/5.8.0//i386-linux-thread-multi/auto/GD/GD.so: undefined symbol: gdFontGetLarge'

Please, tell me - how to resolve such a problem?

Thanks for your help!

Replies are listed 'Best First'.
Re: '500 Internal Server Error', when using 'GIFgraph'?
by mkirank (Chaplain) on Dec 19, 2004 at 13:41 UTC
    As per the link given here
    Check the section whats new in section 1.6.1 it says
    If you get undefined symbol errors, be sure to check for older versions of libpng in your library directories!
    Also what did u reinstall ? a new version of GD ?
      Thakns for help!

      I just reinstalled two library: libgd, and libpng with the latest versions, and the scripts are working correctly with GIFgraph!

Re: '500 Internal Server Error', when using 'GIFgraph'?
by steves (Curate) on Dec 19, 2004 at 11:23 UTC

    You may not have your environment set under the new set-up so the dynamically loaded objects can be found. Depending on your system, the environment variable that needs to be set is probably either LD_LIBRARY_PATH or LIB_PATH.

    The Apache documentation for configuring environment variable settings is here. It would be good if you had your old Apache configuration settings so you could compare the two.

Re: '500 Internal Server Error', when using 'GIFgraph'?
by blue_cowdawg (Monsignor) on Dec 19, 2004 at 15:46 UTC

    As steves has already pointed out you may have a LD_LIBRARY_PATH issue you are falling victim to.

    One caveat I have to point out. When you execute a script from the command line you may not necessarily have the same shell environment that your CGI environment is going to have. This is where having a really good relationship with your system administrator pays off.

    You mention a re-installation: of the scripts to a new environment or was the hosting environment rebuilt?

    The last time I ran into the errors you mention was when I installed a new version of Perl on one of my production machines at work. I remember having to recompile a lot of the modules (of course the CPAN ones all and to be re-installed) as well as the locally grown ones.

    In any event, checking out the apache logs when you get 500 errors often yields a wealth of information.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://415970]
Approved by Corion
Front-paged by ysth
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-25 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found