Longview with Perl 5.20


I am trying to install the longview client on my Linode with CentOS 6.5 and Perl v5.20.0 built for x86_64-linux. I am getting the following error in tail /var/log/linode/longview.log

08/15 17:12:23 INFO Longview[4909] - Starting Longview Agent version 1.1.4
08/15 17:12:23 INFO Longview[4910] - Loading module /opt/linode/longview/Linode/Longview/DataGetter/Disk.pm
08/15 17:12:23 WARN Longview[4910] - Can't locate syscall.ph in @INC (did you run h2ph?) (@INC contains: /usr/local/lib/perl5/site_perl/5.20.0/x86_64-linux /usr/local/lib/perl5/site_perl/5.20.0 /usr/local/lib/perl5/5.20.0/x86_64-linux /usr/local/lib/perl5/5.20.0 . /opt/linode/longview/Linode/../ /opt/linode/longview/Linode/../lib/perl5 /opt/linode/longview/Linode/../lib/perl5/x86_64-linux/ /opt/linode/longview/Linode/../usr/include) at /opt/linode/longview/Linode/Longview/DataGetter/Disk.pm line 34.
Compilation failed in require at /opt/linode/longview/Linode/../Linode/Longview/DataGetter.pm line 62.

Any ideas?


2 Replies

You're missing the perl header files that allow perl modules to make system calls directly. Generally these are included in your distro's packages, but I'm guessing you built perl from source, so that step probably wasn't done. You can run '/usr/local/bin/h2ph -a' as root to generate the needed perl header files so you can start Longview.

Thank you!

When I run '/usr/local/bin/h2ph -a'

I get this:

require '_h2ph_pre.ph';

no warnings qw(redefine misc);


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct