Today I stuck in this error when recompiling php using easyapache. It was giving error to fail to install the given perl module.
-- Begin opt 'CurlSSL' --
!! Failed to install CPAN Perl module(s) LWP::UserAgent !!
I tried different solutions to check why it is not getting installed.
Some on them was using cpan
-- Begin opt 'CurlSSL' --
!! Failed to install CPAN Perl module(s) LWP::UserAgent !!
Failed to install CPAN Perl module(s) LWP::UserAgent
When i check it using cpan , It says that this module is already installed and up to date. I tried different solutions to check why it is not getting installed.
Some on them was using cpan
root@server [~]# cpancpan>cpan> install LWP::UserAgentCPAN: Storable loaded ok (v2.20)Reading '/home/.cpan/Metadata'Database was generated on Thu, 13 Jun 2013 21:53:03 GMTCPAN: Module::CoreList loaded ok (v2.18)LWP::UserAgent is up to date (6.05).
I even tried opening a support ticket but could not process free cpanel ticket due to some error .
Solution:
Then i tried to uninstall the given perl module so i can re-install it. Inorder to un-install the perl module I downloaded cpanminus.
curl -L http://cpanmin.us | sudo perl - App::cpanminus
sudo cpanm LWP::UserAgent
Then I run the command to uninstall the perl module using
cpanm -U LWP::UserAgent
and then installed the module again using
root@server [~]# cpan
cpan>
cpan> install LWP::UserAgent
And then run easyapache again and it all went successfully.. So writing this so some one might get benefit of it.
Thanks
Asif