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

I tried to draw an image,chart using perl.
I used GD::Simple; from cpan.
But i am getting error as
ld.so.1: drawlines.pl: fatal: relocation error: file /opt/perl5.8/lib/ +site_perl/5.8.8/sun4-solaris/auto/GD/GD.so: symbol gdFontGetSmall: re +ferenced symbol not found Killed
can any one help me how to resolve this error. Thanks,
srins

2006-06-06 Retitled by jeffa, as per Monastery guidelines
Original title: 'How to solve this error'

Replies are listed 'Best First'.
Re: Error with GD::Simple
by derby (Abbot) on Jun 06, 2006 at 13:29 UTC

    You need to either set your LD_LIBRARY_PATH environment variable to the location of libgd.so or you need to do the solaris method for updating default library locations (on linux, that would mean editing /etc/ld.so.conf).

    -derby
Re: Error with GD::Simple
by dragonchild (Archbishop) on Jun 06, 2006 at 14:02 UTC
    If you didn't understand derby's response, the first question is "Have you installed GD?" - if you haven't, then you need to do that. Unless you're the sysadmin, you need to ask the person who administers the machine you're on to install it for you.

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?