Click to See Complete Forum and Search --> : missing CGI.pm


quark
01-26-2003, 11:18 PM
it was my understanding that CGI.pm is a standard module that comes with perl... so.. i write my first few scripts and go to run them...

[mike@linux mike]$ cd scripts/
[mike@linux scripts]$ ./myscript.pl
Can't locate CGI.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at ./myscript.pl line 2.
BEGIN failed--compilation aborted at ./myscript.pl line 2.
[mike@linux scripts]$

im using Mandrake 8.2 and have perl 5.6.1 installed ( incorrectly?)
so.. is there an easy way i can just add this module in? as far as i can see everything else is there and installed correctly.

error27
01-27-2003, 12:22 AM
updatedb
locate CGI.pm

maybe your include paths are screwed up?

quark
01-27-2003, 11:10 AM
the problem isnt the paths.. they point where they should
ive looked in all the places CGI.pm ever could be and it isnt anywhere to be found. is there a way i can just reinstall that one modules?

takshaka
01-28-2003, 12:51 AM
As root...

# perl -MCPAN -eshell
(answer questions for 1st-time use)
cpan> install CGI
cpan> exit

But the lack of CGI.pm suggests something is wrong with your installation. You may want to reinstall Perl from either an updated RPM or from source.