LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   net-snmp (https://www.linuxquestions.org/questions/slackware-14/net-snmp-650396/)

ntwaddell 06-19-2008 04:07 PM

net-snmp
 
I am trying to install net-snmp on a slackware server.

I installed net-snmp-5.2.1-i486-2.tgz

I get librpm-4.2.so: cannot open shared object file when it starts

why would this package rely on librpm anyways?

T3slider 06-19-2008 04:29 PM

What version of Slackware? 12.0 and 12.1 include net-snmp 5.4 by default already. In addition, librpm is included in the rpm-4.0.2 package included with 8.1, 9.0 and 9.1 and the rpm-4.2.1 package included with Slackware 10.1, 10.2, 11.0, 12.0, and 12.1. I doubt you would need to go further back than that.

If you're using 11.0 or older and want to install net-snmp, you need the rpm package -- for whatever reason, it does depend on it, at least according to linuxpackages.net (which isn't a very good source, but is the only place with a package for 11.0).

Alien Bob 06-19-2008 05:01 PM

Looks like you installed my old net-snmp package for Slackware 10.0: net-snmp-5.2.1-i486-2.tgz
and your system is not running Slackware 10.0, or does not have a full install of it.
My packages always build against a full install of Slackware, and net-snmp picked up the RPM libraries that come with Slackware. No idea why it thought that RPM was required.

The net-snmp that went into Slackware has "--without-rpm" added to the source configuration so that the resulting package will not depend on RPM.

You can build your own package for your server using the Slackware build script (look for it in /source/n/net-snmp/ on the Slackware DVD).

Eric

ntwaddell 06-19-2008 11:34 PM

thanks! yeah i realized that package was old after i posted this. I got the latest package, and will try again tomorrow.


All times are GMT -5. The time now is 10:32 PM.