Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Question about Perl header files when using cPanel's Perl

Discussion in 'cPanel Developers' started by dont_panic, Nov 9, 2018.

  1. dont_panic

    dont_panic Member

    Joined:
    Nov 7, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Prague
    cPanel Access Level:
    Root Administrator
    Hello,

    The error is:
    Code:
    Can't locate syscall.ph in @INC (did you run h2ph?) 
    I found this thread with the same problem and a suggested solution. I see there is a /usr/local/cpanel/3rdparty/perl/526/bin/h2ph on my system, I am assuming I would run that one, if this is the correct approach?

    Can you confirm this is correct and safe and will not impact the system perl? I am working on a production system with many live customers and am very concerned about breaking things.

    Thank you!
     
    #1 dont_panic, Nov 9, 2018
    Last edited by a moderator: Nov 9, 2018
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @dont_panic,

    I recommend reaching out to the developer of the script you are installing to report the issue and verify the specific command they suggest using. Running the noted command manually isn't advised. You can read about how it works at:

    h2ph - perldoc.perl.org

    Thank you.
     
  3. dont_panic

    dont_panic Member

    Joined:
    Nov 7, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Prague
    cPanel Access Level:
    Root Administrator
    Thanks for the reply. I had been in touch with Linode support (the script, Longview, is one of their applications) before posting here. They suggested contacting CPanel support, as it is the unusual multi-perl environment CPanel creates which is the problem. The script runs fine on my other vanilla Debian systems.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
  5. dont_panic

    dont_panic Member

    Joined:
    Nov 7, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Prague
    cPanel Access Level:
    Root Administrator
    Thanks, but yes I have - I described that in another thread. It fails and Linode support suggested it was bcs it is old (v5.10.1). That's why I was trying the more up-to-date 3rd party Perl.
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi @dont_panic,

    While you are welcome to use h2ph per it's documentation, it's generally a better idea to test out these type of changes on a development server. My advice is to temporarily setup a low-end VPS, replicate the server environment to match what you use now, install cPanel & WHM (trial licenses are available), and then test out the changes on the development server.

    Thank you.
     
  7. dont_panic

    dont_panic Member

    Joined:
    Nov 7, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Prague
    cPanel Access Level:
    Root Administrator
    Thank you, I appreciate all the advice. I think I will have to shelve this idea for now.

    Thanks again,
    Jack
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice