After installing net-analyzer/net-snmp with [ebuild R ] net-analyzer/net-snmp-5.7.2-r1 USE="X bzip2 ipv6 lm_sensors mysql perl python ssl tcpd zlib -doc -elf -mfd-rewrites -minimal -netlink -pci -rpm (-selinux) -ucd-compat" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" 0 kB I have tried to execute tkmib which fails with the following error: $ tkmib ERROR: You don't have the SNMP perl module installed. Please obtain this by getting the latest source release of the net-snmp toolkit from http://www.net-snmp.org/download/ . The perl module is contained in the perl/SNMP directory. See the INSTALL file there for instructions. The problem has been solved installing dev-perl/Net-SNMP and recompiling net-analyzer/net-snmp, the last step is needed otherwise you get the following error: $ perl -e 'require SNMP;' Can't load '/usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux-thread-multi/auto/SNMP/SNMP.so' for module SNMP: /usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux-thread-multi/auto/SNMP/SNMP.so: undefined symbol: usmAESPrivProtocol at /usr/lib64/perl5/5.16.3/x86_64-linux-thread-multi/DynaLoader.pm line 190.
dev-perl/Net-SNMP installs a Perl module called Net::SNMP. net-analyzer/net-snmp installs a Perl module called SNMP. tkmib should work fine since it is installed with SNMP.pm, until you upgrade dev-lang/perl and your interpreter starts looking outside the directory that SNMP.pm was installed to. Which version of dev-lang/perl is installed, and did you run perl-cleaner after you upgraded that?
(In reply to Jeroen Roovers from comment #1) > dev-perl/Net-SNMP installs a Perl module called Net::SNMP. > > net-analyzer/net-snmp installs a Perl module called SNMP. > tkmib should work fine since it is installed with SNMP.pm, until you upgrade > dev-lang/perl and your interpreter starts looking outside the directory that > SNMP.pm was installed to. > > Which version of dev-lang/perl is installed, and did you run perl-cleaner > after you upgraded that? I have installed perl 5.16.3 and perl-cleaner says * No package needs to be reinstalled. I guess I run perl-cleaner in December when I have installed that version of perl. Now I have just tried removing dev-perl/Net-SNMP and recompiling net-analyzer/net-snmp... I can't reproduce anymore the error reported in the past so I close as WORKSFORME