|
|
error with perl script
I am trying to run a perl script i have downloaded off the net and i get
this error.
Can't locate Image/Grab.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at ./carte.pl line 137.
BEGIN failed--compilation aborted at ./carte.pl line 137.
I don't know what Image/Grab.pm is.
I am running redhat 8.0
Can someone help me?
|
|
0
|
|
|
|
Reply
|
Robert
|
5/16/2004 2:27:55 AM |
|
"Robert Smith" <laclac01@yahoo.com> writes:
> I am trying to run a perl script i have downloaded off the net and i get
> this error.
>
> Can't locate Image/Grab.pm in @INC (@INC contains:
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/5.8.0
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0
> /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl .) at ./carte.pl line 137.
> BEGIN failed--compilation aborted at ./carte.pl line 137.
>
> I don't know what Image/Grab.pm is.
> I am running redhat 8.0
> Can someone help me?
You can install this module by doing the following as root:
# perl -MCPAN -eshell
cpan shell -- CPAN exploration and modules installation (v1.61)
ReadLine support available (try 'install Bundle::CPAN')
cpan> install Image::Grab
....
If you want to install the entire Image module, then just say
cpan> install Image
Joe
--
"Surprise me"
- Yogi Berra when asked where he wanted to be buried.
|
|
0
|
|
|
|
Reply
|
joe
|
5/16/2004 4:35:57 AM
|
|
On Sun, 16 May 2004 02:27:55 GMT, "Robert Smith" <laclac01@yahoo.com>
wrote:
>I am trying to run a perl script i have downloaded off the net and i get
>this error.
>
>Can't locate Image/Grab.pm in @INC (@INC contains:
>/usr/lib/perl5/5.8.0/i386-linux-thread-multi
>/usr/lib/perl5/5.8.0
>/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
>/usr/lib/perl5/site_perl/5.8.0
>/usr/lib/perl5/site_perl
>/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
>/usr/lib/perl5/vendor_perl/5.8.0
>/usr/lib/perl5/vendor_perl .) at ./carte.pl line 137.
>BEGIN failed--compilation aborted at ./carte.pl line 137.
>
>I don't know what Image/Grab.pm is.
>I am running redhat 8.0
>Can someone help me?
>
The other poster's advice about using the CPAN module
works well, but can be intimidating for someone totally
unfamiliar with CPAN.
There is also a slight security risk running the CPAN module
as root (very slight, yet not negligible).
You can also go to http://cpan.org and search for
Image::Grab. Then download the tgz package for it.
http://search.cpan.org/CPAN/authors/id/M/MA/MAHEX/Image-Grab-1.4.tar.gz
Then it's simple:
unpack the tarball
perl Makefile.PL
make
make test
make install (as root or you can install to your homedir as user)
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
|
|
0
|
|
|
|
Reply
|
zentara
|
5/16/2004 2:22:28 PM
|
|
|
2 Replies
217 Views
(page loaded in 0.061 seconds)
|
|
|
|
|
|
|
|
|