Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
    
compile from source and install in /opt? –  Mike Pennington Jun 29 '12 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 '12 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 –  Mike Pennington Jun 29 '12 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 '12 at 3:21
    
Iirc, it is as simple as './configure --prefix=/opt/netsnmp', make, make install –  Mike Pennington Jun 29 '12 at 3:22

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
    
Thanks for your help :) –  jtnire Jun 29 '12 at 3:34
    
I'm happy to assist... best of luck with your new snmp tools –  Mike Pennington Jun 29 '12 at 3:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.