|
Home > Archive > Unix Programming > May 2004 > error with perl script
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
error with perl script
|
|
| Robert Smith 2004-05-15, 10:34 pm |
| 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?
| |
| joe@invalid.address 2004-05-16, 12:34 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.
| |
| zentara 2004-05-16, 10:34 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...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
|
|
|
|
|