After installing RedHat 7.0 with the ucd-snmp and ucd-snmp-utils rpms, it
was a big pain-in-the-tuckus to get tkmib working, and it shouldn't have
been. Here's the saga:
1) tkmib complains about missing tk.pm (doesn't complain about missing
any other dependencies).
2) No problem - downloaded, compiled, installed tk.pm.
3) Run it again - now tkmib complains about missing SNMP.pm. Irritating
- how many more modules am I missing? View tkmib source - nope, that's
it, just tk and SNMP modules are used...
4) Download SNMP.pm package from CPAN. Makefile.PL asks for location of
ucd-snmp include files. Don't have any - I installed from the binary RPM,
which apparently doesn't install these. Grrr.
5) Download ucd-snmp source RPM, and install. Untar the sources. View
SNMP.pm's Makefile.PL, to figure out exactly which include files it's
looking for. It apparently is seeking a directory called ucd-snmp,
containing such goodies as ucd-snmp-config.h, with many others. It expects
this directory to be in /usr/local/include.
In order to get this to work correctly, I have to install ucd-snmp from the
.tar.gz distribution, which installs the include files that SNMP.pm needs
that weren't installed by the RPM. Then SNMP.pm installs, and tkmib works.
*** Bug 16582 has been marked as a duplicate of this bug. ***
The perl CPAN module needs updating and a SNMP perl module RPM could really be used (as well as a Tk perl module rpm).