matteocorti / nagios_plugins

18 stars 7 forks source link

instalation problems #109

Closed matteocorti closed 8 years ago

matteocorti commented 8 years ago

Original reporter: stardred20@hotmail.com

i'm using ubuntu 12.10 and fresh install the nagios folowing the tutorial : http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html that says the plugin folder is /usr/local/nagios when executing perl Makefile.PL give me the following error:

Could not eval ' package ExtUtils::MakeMaker::_version; no strict; BEGIN { eval {

Ensure any version() routine which might have leaked

                # into this package has been deleted.  Interferes with
                # version->import()
                undef *version;
                require version;
                "version"->import;
            } }
            local $VERSION;
            $VERSION=undef;
            do {
                use version; our $VERSION = '0.9.6';
            };
            $VERSION;
        ' in check_bandwidth: Attempt to reload version.pm aborted.

Compilation failed in require at (eval 8) line 16, <$fh> line 26. BEGIN failed--compilation aborted at (eval 8) line 16, <$fh> line 26. Cannot determine perl version info from check_bandwidth.pod Writing Makefile for check_bandwidth Writing MYMETA.yml root@sara-ubuntu:/usr/local/nagios/check_bandwidth-0.9.6# perl Makefile.PL INSTALLSCRIPT=CUSTOM_DIR Could not eval ' package ExtUtils::MakeMaker::_version; no strict; BEGIN { eval {

Ensure any version() routine which might have leaked

                # into this package has been deleted.  Interferes with
                # version->import()
                undef *version;
                require version;
                "version"->import;
            } }
            local $VERSION;
            $VERSION=undef;
            do {
                use version; our $VERSION = '0.9.6';
            };
            $VERSION;
        ' in check_bandwidth: Attempt to reload version.pm aborted.

Compilation failed in require at (eval 8) line 16, <$fh> line 26. BEGIN failed--compilation aborted at (eval 8) line 16, <$fh> line 26. Cannot determine perl version info from check_bandwidth.pod Writing Makefile for check_bandwidth Writing MYMETA.yml

matteocorti commented 8 years ago

Original reporter: matteo@corti.li

It seems that there is a problem with your Perl installation. Please check that you have the version and ExtUtils::MakeMaker modules.

Check with:

$ perl -MExtUtils::MakeMaker -e 1
$ perl -Mversion -e 1

If you get any error refer to your system's documentation on how to install them