Issue
I am using Linux Fedora 12.
I am learning Perl, and can run the simple "Hello world" programs, so Perl is install ok, but now I want to use GD in a Perl program, which starts:
#!/usr/bin/perl -w
use GD;
.. but it fails with:
[Harry@SN... ~]$ perl /home/Harry/perlprogs/trygraphic.pl
Can't locate GD.pm in @INC (@INC contains: ...
Please, what do I need to do? And, also very important: how do I find out what I need to know, to do it?
I believe I have installed GD, when I try the first line here:
[root@SN ... Harry]# perl -MCPAN -e install GD::Graph
[root@SN ... Harry]#
I get the second line with no other output between.
Solution
Thanks for the tantalizing answers. Taking the hint from @Boris Dappen, (can't find know how to do the umlaut, sorry) I tried yum install gd
which gave me:
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
No package perl-gd available. * Maybe you meant: perl-GD
So I used
yum install perl-GD
. and then use GD
in the proram worked ok.
Answered By - Harry Weston Answer Checked By - Pedro (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.