1820878 Members
5620 Online
109628 Solutions
New Discussion юеВ

Perl Script

 
Network Servers
Advisor

Perl Script

Gettting errors.

Can't locate Getopt/Std.pm in @INC (@INC contains: /opt/perl5_mod_/lib/5.6.1/PA-RISC2.0 /opt/perl5_mod_/lib/5.6.1 /opt/perl5_mod_/lib/site_perl/5.6.1/PA-RISC2.0 /opt/perl5_mod_/lib/site_perl/5.6.1 /opt/perl5_mod_/lib/site_perl .) at /sd/home/root/sysadmin_tools/vg_sum line 11.
BEGIN failed--compilation aborted at /sd/home/root/sysadmin_tools/vg_sum line 11.

Thanks ...
Don't fly off the handle when you are full of baloney...
4 REPLIES 4
Rajeev  Shukla
Honored Contributor

Re: Perl Script

Hi Arnold,

You need "Getopt::Std" module in your perl which doesn't seem to be installed.
Either download it from http://search.cpan.org/~nwclark/perl-5.8.6/lib/Getopt/Std.pm
or use perl shell to install the module

Cheers
Rajeev
H.Merijn Brand (procura
Honored Contributor

Re: Perl Script

Getopt::Std (and Getopt::Long) are part of the core distribution, so you should NOT have to get them from CPAN.

You *do* however have a strange library path. I don't know of any standard distribution that has /opt/perl5_mod_ as their $PERL5LIB equivalent

What is your perl version? ActivePerl?

# perl -v

And if you want to know where perl will look by default, do

# perl -V

with a capital V, and it'll show you the include path. Std.pm should be in there

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ganesha Sridhara
Honored Contributor

Re: Perl Script

Hello Arnold Rico,

You can install perl package from net using PPM.
For more detail: http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/ActivePerl-faq2.html

Regards
Ganesha Sridhara
Petri A. R├дty_1
New Member

Re: Perl Script

I was getting the same /opt/perl5 problem with snmpconf from Net-SNMP and perl 5.8.3 (depot from HP freeware site). It was caused by compiling Net-SNMP against perl 5.0.0 from default HP-UX 11i installation. Then I installed perl 5.8.3 and got in trouble. My perl scripts were pointing to #!/usr/contrib/bin/perl . I modified the scripts to have intepreter #!/opt/perl/bin/perl and then they worked fine.

Check 'which perl' is run.
Pessimisti ei pety