Cactid Execution Error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Wildmike556
Posts: 6
Joined: Mon Aug 23, 2004 9:53 am
Location: Big Rapids, Michigan, USA

Cactid Execution Error

Post by Wildmike556 »

I have installed Cacti 0.8.5a on RedHat Linux 7.3, and everything appears to be functioning properly. I wanted to get a performance boost so I can monitor a large network with several hundred interfaces.

I configured/made/installed cactid, and now when I try to execute the binary, I get the following error:

Code: Select all

[root@161 bin]# ./cactid
./cactid: error while loading shared libraries: libnetsnmp.so.5: cannot open shared object file: No such file or directory
[root@161 bin]#
I have installed net-SNMP 5.1.2 on this machine, and the libnetsnmp.so.5 file resides in /usr/local/lib, where it was placed by the installer. I've tried copying this file into /usr/local/cactid and /usr/local/cactid/bin, but every time it says it can't open the file.

Any ideas would be greatly appreciated![/code]
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

You have checked the permisions on those files right?
Dave
Wildmike556
Posts: 6
Joined: Mon Aug 23, 2004 9:53 am
Location: Big Rapids, Michigan, USA

Library File Permissions

Post by Wildmike556 »

Actually I haven't checked the permissions, but I've been trying to execute cactid as the superuser, so that wouldn't make a difference, would it?

Thanks for the reply.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

There is an environment variable missing in your make configure/make routing pointing the the Net-SNMP shared libraries. I an not a *nix user, but I did work with a gentleman over the weekend who had the same exact problem. The path was LD_???. Sorry I can't be of more assistance. Try Google......

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Wildmike556
Posts: 6
Joined: Mon Aug 23, 2004 9:53 am
Location: Big Rapids, Michigan, USA

Solution Follow-Up

Post by Wildmike556 »

Thanks to TheWitness for pointing me in the right direction on this. I did a google for the problem and found a page that had a solution: http://trantor.imit.kth.se/courses/2g13 ... ommon.html

Basically, what I had to do was append the path '/usr/local/lib' onto the environment variable LD_LIBRARY_PATH. For those of you who might not know how to do this, here's the command:

Code: Select all

[root@mushroom /]# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
I don't know how to make this information be appended to the variable at every startup, so you'll need to find that out, but that's the jist of it.

Hope this info is useful for someone else.

~Mike
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

You should be able to add it to your login scripts. Add it to the bashrc file of the user or something.
Dave
kc
Posts: 6
Joined: Thu May 27, 2004 11:17 am
Location: Atlanta, GA

Post by kc »

melchandra wrote:You should be able to add it to your login scripts. Add it to the bashrc file of the user or something.
See my comments about LD_LIBRARY_PATH at http://forums.cacti.net/viewtopic.php?p=17263#17263

Have fun... :)
-KC
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests