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:

Code Block

use Data::UUID;

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.

Code Block

cpan

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

Code Block

install Data::UUID

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:

Code Block

o conf prerequisites_policy follow
o conf commit

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:

Code Block

tar xvf Data-UUID-1.218.tar.gz
cd Data-UUID-1.218
perl Makefile.PL
make
make test # optional
make install # if not root user then "sudo make install"

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