How to install perl module successfully

I use Bugzilla. Today, I decided to upgrade it. Some of the optional modules in previous version became required now. Installation steps are quite simple. Use the command below to install any perl module.

/usr/bin/perl install-module.pl Module::Name

Now my problem was, when I try to install, everything is fine & it finishes with no errors. But when I check it again, it says the module is not yet installed. It was very confusing. Here is the log received.

Command Used: perl install-module.pl Template

Output received:

Checking for                              CPAN <v1.81>              ok: found v1.92
Checking for                              YAML <any>                 ok: found v0.66
Checking for      ExtUtils-MakeMaker       <v6.31>             ok: found v6.42
CPAN: Storable loaded ok <v2.18>
Going to read /root/.cpan/Metadata
  Database was generated on <<date time>>
Going to read /root/.cpan/build/
..........................................................................................................................
Found 44 old builds, restored the state of 44
Installing Template version 2.22....
Running install for module 'Template'
Running make for A/AB/ABW/Template-Toolkit-2.22.tar.gz
    Has already been unwrapped into directory /root/.cpan/build/Template-Toolkit-2.22-4tZY8t
    Has already been made
Skipping test because of notest pragma
Running make install
    Already done

Now if you look at this log message, it looks like installation was successfully. But unfortunately, it’s not. I googled a lot to find out a possible solution. Nobody seem to have my problem. Anybody who posted for help had some installation failure message. So, now how to fix it… …….?????

One member in some site suggested to delete the contents of .cpan directory for a installation failure issue (there was a real installation failure message for the person to whom this was suggested). I thought, why not I try it too.

Command to delete .cpan directory: rm -R /root/.cpan

Now I tried installing the module again. Hey.. it worked !!!! I have no knowledge of perl.. and I am so happy that it worked. Now my Bugzilla is upgraded to the latest version 4.0.1.

Hope this helps everyone :)

Share This

Leave a Reply

Your email address will not be published. Required fields are marked *


× four = 36

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>