Question about Perl header files when using cPanel's Perl

dont_panic

Member
Nov 7, 2018
9
1
1
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!
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
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.
 

dont_panic

Member
Nov 7, 2018
9
1
1
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
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.