Perl symbol lookup error

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
cyberax
Posts: 2
Joined: Thu Oct 25, 2012 5:19 am

Perl symbol lookup error

Post by cyberax »

Hi,

I'm trying to use Cacti to monitor ESXi, and I'm getting empty graphs. After some digging, I found out that when running the specific perl script as root, it is working fine, but when running as cacti web user (www-data), I get the following error.

/usr/bin/perl: symbol lookup error: /usr/lib/perl/5.14/auto/XML/LibXML/Common/Common.so: undefined symbol: Perl_Gthr_key_ptr

Does anybody know how to solve that?

Thanks,
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Perl symbol lookup error

Post by paulgevers »

My first quess would be to check for differences in the $PATH environmental variable for the two users.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
cyberax
Posts: 2
Joined: Thu Oct 25, 2012 5:19 am

Re: Perl symbol lookup error

Post by cyberax »

Thanks! It looks like the PATH for root contains /root/perl5/bin. What I have found is that it looks like PERL modules were installed in /root/perl5 so that only root has access to them. Can you tell me how to install modules for all users?
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Perl symbol lookup error

Post by paulgevers »

cyberax wrote:Can you tell me how to install modules for all users?
I would say: follow the procedure for you distrobution. What distribution are you using? For Debian, something like

Code: Select all

apt-get install perl
.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests