WHM does not install perl modules to the right place

cortecds

Member
Jan 15, 2005
9
0
151
I have been searching google and here and cannot find an answer.
When I do a module installation it acts like it does it but then my perl script does not work.

cPanel 11.24.5-R38506 - WHM 11.24.2 - X 3.9
Perl5

I believe it is installing the modules to:
/usr/lib/perl5/site_perl/5.8.8
but they don't seem to work there.

This is not just one module that has this problem it has happened a bunch of times and on other servers I own.
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
Is there any error message are you receiving?
 

cortecds

Member
Jan 15, 2005
9
0
151
no, ir acts like it installed it ok.
I have done this with a bunch of modules.
They still don't work.
With image::magick I had to install from ssh.
I would like to be able to install a module through cpanel like I was suppose to.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
Here's what is happening on one of my test servers:

The Perl Module installer interface ( WHM >> Software >> Install Perl Module ) reports that modules will be installed to /usr/lib/perl. However, the output from a module installation reports the module is actually installed to /usr/local/lib/perl.

My guess, at this point, is the same thing is happening on your server. I filed a bug report regarding this issue. It's primarily a UI issue as /usr/lib/perl is hard coded in several locations in the UI layer.
 

cortecds

Member
Jan 15, 2005
9
0
151
Thanks for your help, and reporting it.

So until cpanel fixes it there is no work around besides manually loading them through ssh, correct?