The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

adding perl module on cpanel's 5.14 internal perl

Discussion in 'General Discussion' started by markhard, Feb 20, 2014.

  1. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    hello,

    since munin now using cpanel's internal perl 5.14 my nginx graph didn't generated as it requires "LWP::UserAgent". how do i add this module? /scripts/perlinstaller is installing to the system's perl module and not cpanel's perl
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Hello,

    Documentation on this topic is available here: Internal Perl Modules

    In short:

    /scripts/perlinstaller is for adding modules to the OS perl (/usr/bin/perl)
    /usr/local/cpanel/3rdparty/perl/514/bin/cpan is for installing modules for cPanel & WHM's perl
     
  3. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    thanks for pointing out, i was reading that article but got confused with scripts/perlinstaller
     
  4. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    i managed to install LWP::UserAgent with this command:

    but i'm still getting errors:

     
  5. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    i got it fixed, the script was still calling the system perl instead of cpanel perl
     
Loading...

Share This Page