Skip to content

Instantly share code, notes, and snippets.

@jhannah
Created February 3, 2011 01:19
Show Gist options
  • Select an option

  • Save jhannah/808868 to your computer and use it in GitHub Desktop.

Select an option

Save jhannah/808868 to your computer and use it in GitHub Desktop.
[ps35512]$ ./cpanm Nagios::Plugin
Fetching http://search.cpan.org/CPAN/authors/id/T/TO/TONVOON/Nagios-Plugin-0.35.tar.gz ... OK
!
! Can't write to /usr/local/share/perl/5.10.0 and /usr/local/bin: Installing modules to /home/cm_satin/perl5
! To turn off this warning, you have to do one of the following:
! - run me as a root or with --sudo option (to install to /usr/local/share/perl/5.10.0 and /usr/local/bin)
| - run me with --local-lib option e.g. cpanm --local-lib=~/perl5
! - Set PERL_CPANM_OPT="--local-lib=~/perl5" environment variable (in your shell rc file)
! - Configure local::lib in your shell to set PERL_MM_OPT etc.
!
Configuring Nagios-Plugin-0.35 ... OK
==> Found dependencies: Math::Calc::Units
Fetching http://search.cpan.org/CPAN/authors/id/S/SF/SFINK/Math-Calc-Units-1.07.tar.gz ... OK
Configuring Math-Calc-Units-1.07 ... OK
Building and testing Math-Calc-Units-1.07 for Math::Calc::Units ... OK
Successfully installed Math-Calc-Units-1.07
Building and testing Nagios-Plugin-0.35 for Nagios::Plugin ... OK
Successfully installed Nagios-Plugin-0.35
[ps35512]$ pwd
/home/cm_satin/staging_checkout.git/code/util/nagios
[ps35512]$ ./ph_started.pl
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./ph_started.pl line 4.
BEGIN failed--compilation aborted at ./ph_started.pl line 4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment