Perl Modules won’t Install on Debian Server

/usr/bin/make — NOT OK Failed during this command:

Anytime you cannot get a Perl package to install, here is the likely problem. Run these:

sudo apt-get install build-essential

What is wrong :

a Debian Server install intentionally does not contain development tools for security and efficiency reasons. So when you attempt to run Perl, you find that you can’t get packages to install in CPAN.

sudo perl -MCPAN -e shell

IN CPAN, you see errors such as

'YAML' not installed, will not store persistent state
/usr/bin/make -- NOT OK Failed during this command:
Run these additional commands by telling Perl to use YAML

install YAML
o conf yaml_module YAML
o conf commit

You may have to remove any packages that have not installed properly, allowing you to start over (after you have installed build-essential).

sudo rm -rf /root/.cpan/build/*

Still not working? Remember that using sudo installs Perl modules in /root/.cpan whereas without sudo Perl installs modules in /home/user/.cpan – delete build in both. Reiterate the above until your module does install

Still not working?

sudo apt-get install libxml2-dev

Last resort

cpan Catalyst::Runtime

THIS CAN TAKE A SEVERAL HOURS TO COMPLETE!!

You may also like...