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.

Installing additional Perl modules to help with module creation

Discussion in 'cPanel Developers' started by higherlogic, Jan 22, 2011.

  1. higherlogic

    higherlogic Member

    Joined:
    Mar 5, 2009
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    In the documentation for creating/writing modules, it says that cPanel does not use system-wide installed modules, and that they should be placed here:

    Code:
    /usr/local/cpanel/perl
    So I installed XML::SimpleObject and copied the directory from here:

    Code:
    /usr/lib/perl5/site_perl/5.8.8/XML
    To here:

    Code:
    /usr/local/cpanel/perl
    When I do a perl -w on the file, no errors show up, however, the module that used to work in cPanel (using CP tags since I'm using API2 format) no longer works, unless I remove the use call for XML::SimpleObject.

    How exactly should you add additional Perl modules to cPanel so they can be used?
     
  2. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Well, perl -w isn't going to give you what you need for a variety of reasons.

    I would suggest checking out /usr/local/cpanel/logs/error_log and checking out what it says.

    Looking at the modules and what they do, it appears that it should be fine, but there is always a possibility of a strange compatibility issue.
     

Share This Page