error with perl script
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > error with perl script




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    error with PERL script  
Robert Smith


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-16-04 03:34 AM

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?







[ Post a follow-up to this message ]



    Re: error with PERL script  
joe@invalid.address


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-16-04 05: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.





[ Post a follow-up to this message ]



    Re: error with PERL script  
zentara


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-16-04 03:34 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:05 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register