1

I'm using CentOS 5. I have a need to use net-snmp version "net-snmp-utils-5.5-37.el6_2.1.x86_64" which is currently available in CentOS 6 but not in CentOS 5. The reason I need this version (or greater) is because there is a new supported option added to the config files that I need for my setup.

It would be very much appreciated if someone would give me some steps to install this version (or greater) on my production CentOS 5 systems. Upgrading to CentOS 6 is currently not an option.

Any help would be appreciated.

Thanks

5
  • compile from source and install in /opt? Jun 29, 2012 at 2:57
  • What is the best way to compile something from source without actual doing it on a production server? I'd rather not install the build tools on the servers. Thanks.
    – jtnire
    Jun 29, 2012 at 3:14
  • Boot into a development box running rhel5, install into /opt/netsnmp, then tar that directory tree, and copy to the production server Jun 29, 2012 at 3:19
  • Thanks mike. How do I install into /opt/netsnmp on the dev box? Is that the prefix parameter to the "make install" command?
    – jtnire
    Jun 29, 2012 at 3:21
  • Iirc, it is as simple as './configure --prefix=/opt/netsnmp', make, make install Jun 29, 2012 at 3:22

1 Answer 1

1

I would go to a RHEL5 development machine, untar the source of your choice, cd into the untarr'd directory then issue:

./configure --prefix=/opt/netsnmp; make; make install

Get some coffee :-). Now tar the /opt/netsnmp directory up and copy to your production machine. Be sure to either alias or otherwise prefer this new netsnmp. If it won't run on the new box, ldd is your friend to track down which shared libs are missing.

1
  • I'm happy to assist... best of luck with your new snmp tools Jun 29, 2012 at 3:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .