Salam,
Can you tell me why you are compiling this module ?shakirz1 wrote:still this post is pending ?
Best Regards.
Can you tell me why you are compiling this module ?shakirz1 wrote:still this post is pending ?
I have FC3, as per documents I need CBQ-MIB.c for it, and there is one utility in source of net-snmp "mib2c", when I run it, its show me error.
ERROR: You don't have the SNMP perl module installed.
so I compile perl module for SNMP.
1) perl Makefile.PL -NET-SNMP-CONFIG="sh ../../net-snmp-config" -NET-SNMP-IN-SOURCE=true
2) make
3) make test
4) make install
At step 3) its show this error.
BEGIN failed--compilation aborted at /root/net-snmp-5.3.0.1/perl/SNMP/blib/lib/SNMP.pm line 16.
Compilation failed in require at t/set.t line 11.
BEGIN failed--compilation aborted at t/set.t line 11.
t/set.........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-7
Failed 7/7 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/async.t 2 512 20 40 200.00% 1-20
t/bulkwalk.t 2 512 62 124 200.00% 1-62
t/conf.t 2 512 3 6 200.00% 1-3
t/get.t 2 512 17 34 200.00% 1-17
t/getnext.t 2 512 9 18 200.00% 1-9
t/mib.t 2 512 35 70 200.00% 1-35
t/mibload.t 2 512 7 14 200.00% 1-7
t/notify.t 2 512 10 20 200.00% 1-10
t/session.t 2 512 5 10 200.00% 1-5
t/set.t 2 512 7 14 200.00% 1-7
Failed 10/10 test scripts, 0.00% okay. 175/175 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2
Code: Select all
root@test [/home/.cpan/build/Net-SNMP-5.1.0]# ls
./ ../ Changes examples/ lib/ Makefile.PL* MANIFEST README snmpkey.PL t/
root@test [/home/.cpan/build/Net-SNMP-5.1.0]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SNMP
root@test [/home/.cpan/build/Net-SNMP-5.1.0]# make
cp lib/Net/SNMP/Security/USM.pm blib/lib/Net/SNMP/Security/USM.pm
cp lib/Net/SNMP/Dispatcher.pm blib/lib/Net/SNMP/Dispatcher.pm
cp lib/Net/SNMP/Transport/TCP.pm blib/lib/Net/SNMP/Transport/TCP.pm
cp lib/Net/SNMP/Transport/TCP6.pm blib/lib/Net/SNMP/Transport/TCP6.pm
cp lib/Net/SNMP.pm blib/lib/Net/SNMP.pm
cp lib/Net/SNMP/Transport/UDP.pm blib/lib/Net/SNMP/Transport/UDP.pm
cp lib/Net/SNMP/MessageProcessing.pm blib/lib/Net/SNMP/MessageProcessing.pm
cp lib/Net/SNMP/Security/Community.pm blib/lib/Net/SNMP/Security/Community.pm
cp lib/Net/SNMP/Message.pm blib/lib/Net/SNMP/Message.pm
cp lib/Net/SNMP/PDU.pm blib/lib/Net/SNMP/PDU.pm
cp lib/Net/SNMP/Transport.pm blib/lib/Net/SNMP/Transport.pm
cp lib/Net/SNMP/Transport/UDP6.pm blib/lib/Net/SNMP/Transport/UDP6.pm
cp lib/Net/SNMP/Security.pm blib/lib/Net/SNMP/Security.pm
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" snmpkey.PL snmpkey
cp snmpkey blib/script/snmpkey
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/snmpkey
Manifying blib/man1/snmpkey.1
Manifying blib/man3/Net::SNMP.3
root@test [/home/.cpan/build/Net-SNMP-5.1.0]# make check
make: *** No rule to make target `check'. Stop.
root@test [/home/.cpan/build/Net-SNMP-5.1.0]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/ber....ok
t/mp.....ok
t/usm....ok
All tests successful.
Files=3, Tests=28, 0 wallclock secs ( 0.26 cusr + 0.03 csys = 0.29 CPU)
root@test [/home/.cpan/build/Net-SNMP-5.1.0]#
Code: Select all
mkdir farrukh
cd farrukh
rpm -e net-snmp net-snmp-libs net-snmp-utils net-snmp-devel --nodeps
yum install beecrypt-devel lm_sensors-devel elfutils-devel elfutils-libelf-devel -y
wget http://mesh.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-5.3.0.1.tar.gz
tar -zxvf net-snmp-5.3.0.1.tar.gz
cd net-snmp-5.3.0.1
./configure
make && make install
echo "\
rocommunity public
syslocation "Farrukh Ahmed, Dallas,TX"
" \
> /usr/local/share/snmp/snmpd.conf
cp dist/snmpd-init.d /etc/init.d/snmpd
chkconfig --level 3 snmpd on
for i in $(ls /usr/local/bin/snmp*); do ln -s $i /usr/bin/${i##*/}; done
service snmpd start
updatedb &
cd ~
rm -rf farrukh
Code: Select all
[root@philips-test ~]# cd .cpan/
[root@philips-test .cpan]# ls
build Metadata sources
[root@philips-test .cpan]# cd build/
[root@philips-test build]# ll
total 16
drwxr-xr-x 3 shakir samba-clients 4096 Dec 1 18:00 Crypt-DES-2.05
drwxr-xr-x 6 2649 daemon 4096 Dec 1 18:00 Net-SNMP-5.2.0
drwx------ 7 shakir samba-clients 4096 Dec 1 18:05 POE-0.9500
drwxr-xr-x 6 500 sysadmin 4096 Dec 1 18:05 POE-Component-SNMP-1.07
[root@philips-test build]# cd Net-SNMP-5.2.0/
[root@philips-test Net-SNMP-5.2.0]# ls
blib Changes examples lib Makefile Makefile.PL MANIFEST pm_to_blib README snmpkey snmpkey.PL t
[root@philips-test Net-SNMP-5.2.0]# perl Makefile.PL
Writing Makefile for Net::SNMP
[root@philips-test Net-SNMP-5.2.0]# make
cp snmpkey blib/script/snmpkey
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/snmpkey
Manifying blib/man1/snmpkey.1
Manifying blib/man3/Net::SNMP.3pm
[root@philips-test Net-SNMP-5.2.0]# make check
make: *** No rule to make target `check'. Stop.
[root@philips-test Net-SNMP-5.2.0]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/ber....ok
t/mp.....ok
t/usm....ok
All tests successful.
Files=3, Tests=28, 0 wallclock secs ( 0.44 cusr + 0.06 csys = 0.50 CPU)