[ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]


2009/2/18 Ashton Davis <[email protected]>:
> The problem is, I just don't know.  I hadn't worked on this particular
> system for nearly a year, and when I come back the net-snmp install is
> botched.  I got the error before I tried to upgrade, and got the same error
> after upgrade.  The upgrade that I did didn't make a difference in the
> matter.  And my boss prefers I use source code, not RPM.  His preferences
> govern my actions, unfortunately, or my life would be much easier.  How
> exactly do I remove everything that net-snmp installed?  What rm function
> can find all of those?  ... Or am I going to do it by hand?

How did you run 'configure' when compiling the code?
Did you specify a --prefix or not.

By default, the package will get installed under /usr/local.
If you specify a different prefix, then it will be installed there instead.

If you run
    find /usr/local -name '*snmp*'
           that should pick up most of the relevant files.
It'll miss a handful of man pages, and some binaries under /usr/local/bin,
but if you run
      ls -ltr /usr/local/bin    (and the same with /usr/local/man/man[1358])
these oddities should be obvious enough.


Make a list of all of these files, and then remove them.
   rm   $(cat /tmp/my_list_of_snmp_files)

Then check that there aren't any unexpected RPMs installed:
    rpm -q -a | grep snmp
If there are, then remove those as well.   (rpm -e).


At this point, your system should be free of any taint of SNMP.
So double-check this:

    find / -name '*snmp*'

If this reports anything, then have a close look at these files,
and work out where they might have come from.  Are they related
to Net-SNMP or not?
   Don't just blindly remove *all* mention of SNMP from your system,
but do make sure you've got rid of any Net-SNMP related stuff.
(The file /tmp/my_list_of_snmp_files might comein useful here!)


Don't forget to check that there's nothing running either:
  ps -ef | grep snmp


Then it should be safe to start again with a clean tarball,
and run your usual configure;make;make test; make install

Dave

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to