Click here to get back home

Problems using GD.pm

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problems using GD.pm Chris 01-08-2005
Get Chitika Premium
Posted by Chris on January 8, 2005, 8:05 pm
Please log in for more thread options
Hi all,

I'm hoping some kind soul can help me find out why my installation of
GD under RH Linux 9 doesn't want to work...

A bit of background - I have a 'default' installation of Apache 2.0 and
Perl 5.8.6. I also have mod_perl 2.0 running and working fine. CGI and
Perl scripts work on my served pages with no problem.

I wanted to use GD.pm to give myself some graphics capability, so I
downloaded the latest (gd 2.0.33) GD from www.boutell.com, installed it
following their instructions. After that, I got hold of GD.pm and
installed it directly from CPAN. Everything looked fine but any
attempts to use GD in Perl scripts fail with messages that GD.pm is not
in the search path. However, using a trick to show whether the package
is installed seem to show that Perl sees it...

I'm totally confused. Can anyone offer me some help or advice?
Thanks,

Chris



Posted by Bill Karwin on January 8, 2005, 8:25 pm
Please log in for more thread options
Chris wrote:
> attempts to use GD in Perl scripts fail with messages that GD.pm is not
> in the search path. However, using a trick to show whether the package
> is installed seem to show that Perl sees it...

My guess is that you have at least two instances of Perl installed on
your system, your mod_perl sees one instance, and you installed GD.pm
under another instance.

Regards,
Bill K.


Posted by Chris on January 8, 2005, 10:07 pm
Please log in for more thread options
This could be possible - but how can I find out? I'm used to running
Perl under Windows (the ActiveState distribution) where everything is
in the 'Perl' directory. If I do:

> which perl

I get:

/usr/local/bin/perl

and

> whereis perl

gives

perl: /usr/bin/perl /usr/local/bin/perl

I don't want to start deleting stuff and trash my working setup. What
would be the best way to try and resolve this?

Many thanks,

Chris



Posted by Bill Karwin on January 9, 2005, 2:25 pm
Please log in for more thread options
Chris wrote:
> This could be possible - but how can I find out?

Run a Perl CGI script under your mod_perl environment and get it to
print out information about the Perl interpreter. For example:

use English;
print "Content-type: text/plainnn";
print "executable: $EXECUTABLE_NAMEn";
print "INC: ", join(", ", @INC), "n";

Then once you see the executable name of the instance of Perl that is
being run by Apache/mod_perl, try running it and seeing if it finds the
GD module:

/path/to/that/perl -MGD -e 'print "Found GD $GD::VERSIONn";'

Regards,
Bill K.


Posted by Chris on January 10, 2005, 4:32 pm
Please log in for more thread options
Many thanks, I will try this later on and see what I discover.

Chris



Similar ThreadsPosted
Problems when using Net::MSN 1.022 May 4, 2005, 1:20 pm
LWP problems July 11, 2005, 3:50 pm
PPM Problems on Win.XP November 5, 2007, 4:26 pm
LWP Problems (Authentication?) September 5, 2004, 7:12 am
Net::FTP mdtm problems December 14, 2004, 11:00 pm
Problems with Parse::Lex May 5, 2005, 8:22 pm
DBI_DB2 problems June 2, 2006, 5:24 pm
CGI.pm: encoding problems June 9, 2006, 10:53 am
Test::Pod problems March 3, 2007, 1:04 am
problems with Date-Calc July 8, 2004, 3:09 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap