New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
collectd unable to locate libperl (5.14) #310
Comments
I was facing a similar problem on a CentOS 6.4 when compiling Collectd 5.3 When trying to configure collectd to use perl, I was having this configure error : ** configure: error: "Some plugins are missing dependencies - see the summary above for details" ** The "summary above" was saying : ** perl . . . . . . . . no (needs libperl) ** I had to install the perl module ExtUtils:Embed to get rid of this problem : On CentOS (Adapt with the corresponding apt-get install on Ubuntu) : And then run the "collectd configure" with the following options : Regards, Xavier |
Hi Xavier, Thanks for your reply :) i tried installing ExtUtils:Embed perl module from source. ExtUtils-Embed-1.14.tar.gz but the problem still exits :( am i missing anything ? |
config log configure:21765: gcc -o conftest -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.14/CORE -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.14/CORE -lperl -lgdbm -lgdbm_compat -ldl -lm -lpthread -lc -lcrypt conftest.c -ldl >&5 |
config.log
|
Add Should be fixable by the following patch:
And yes, I'm compiling 5.2.0 but 5.3.0 has the same issues. |
I can reproduce the issue on Ubuntu 12.4: The linker links in |
I can reproduce this bug on Ubuntu 13.04 too. It appears that in some way symbols are not exported by the library. I cannot found a way to fix it manually, is a weird bug :/ |
Also ran into this while building a redhat rpm for collectd 5.2.2, and came across both this issue and a debian bug report from 2011: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637875 I used the patch in that report as a guide to hacking up 5.2.2 and had more success finding libperl on the next build. Haven't tried it for 5.3 (yet), but it might be worth a shot. |
Just installing the following packages before running
Courtesy of Hector Castro's Collectd Chef cookbook: https://github.com/hectcastro/chef-collectd/blob/master/recipes/default.rb |
Thanks for the pointer, @wubr! I'll check if I'm running into the same problem. |
I can also confirm now that sometime in the last week I had the same issue and fix for 5.3 in my environment using the same debian patch as a guide. |
This appears to have been fixed in #390 but not merged yet. I performed the following incantation to get it working on Ubuntu 12.04 LTS: git clone -b collectd-5.4 git@github.com:collectd/collectd.git |
For the record, the root of this problem is mentioned here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637875 |
Merging #390 fixed this problem. collectd 5.5.x, 5.4.2 and 5.3.2 should correctly detect libperl and build the plugin on ubuntu. |
FWIW, encountered the same problem with CentOS 7. Installing the |
To clarify, that last comment was regarding collectd 5.5.0. |
I am using ubuntu 12.4 . perl version 5.14 .
I wanted to install collectd 5.3.0 from source and use perl plugin to store metrics into remote database.
but when i type ./configure
.
.
.
checking for perl... yes (/usr/bin/perl)
checking for libperl... no
.
.
libperl no
.
.
.
perl no(needs libperl)
Collectd is unable to locate my libperl even though it is available
$locate libperl
/usr/lib/libperl.a
/usr/lib/libperl.so
/usr/lib/libperl.so.5.14
/usr/lib/libperl.so.5.14.2
/usr/share/doc/libperl-dev
/usr/share/doc/libperl5.14
/usr/share/lintian/overrides/libperl5.14
/var/cache/apt/archives/libperl-dev_5.14.2-6ubuntu2.3_amd64.deb
/var/lib/dpkg/info/libperl-dev.list
/var/lib/dpkg/info/libperl-dev.md5sums
/var/lib/dpkg/info/libperl5.14.list
/var/lib/dpkg/info/libperl5.14.md5sums
/var/lib/dpkg/info/libperl5.14.postinst
i even tried installing lower versions of perl (5.10) using perlbrew but the problem remains.
Any help would be appreciated :)
The text was updated successfully, but these errors were encountered: