Skip to end of metadata
Go to start of metadata

The following assumes a working knowledge of Linux/Unix shell.

Identifying Missing Perl Libraries

When using NMIS, it is likely you will encounter an error message like the following:

The error message is telling you everything you need to know, the first part "Can't locate Data/UUID.pm in @INC" means that Perl can not find the module or libary called Data::UUID in the library folders named in the part "@INC contains:", and this problem was found at line 3 of scratch.pl "BEGIN failed--compilation aborted at scratch.pl line 3.".

Line 3 of this code contains the following:

To make this work, Data::UUID will need to be installed, this can be done with or without using the.

Installing using CPAN

If the computer having the problem has an internet connection you can use the command cpan to install the library.  The first time you run cpan it will ask a bunch of questions, the defaults will work 99% of the time, so accept them all.

Then you will be at a CPAN prompt, at this prompt just type "install <missing library name>", in this example:

Follow Prequest Automatically

You will be prompted and if doing this alot you might want to accept the prompts automatically, the following can be used and the CPAN shell prompt:

 

Installing without CPAN

Find the Perl Library Source

If you don't have the Perl library source code, you will need to download it.  Finding Perl Libraries is easy thanks to Google, so google Data::UUID and the first hit will most likely be the CPAN website:

Go to CPAN and download the package

Now you have the file to install the source code.

Install the Perl Library from Source Code

The next part is usually very straight forward 99% of the time, the commands to do this are very easy, assuming the tarball file is in your local directory:

The output for that process will look something like this (this was done on MAC OSX, same for Linux, Solaris, etc):

  • No labels