Makefile:295: recipe for target 'perlmodules' failed
路口游子 2015-11-23 10:07:13 chmod a+x net-snmp-config
touch net-snmp-config-x
make[1]: Entering directory '/home/du/code/snmp/net-snmp-5.7.3/perl'
make[2]: Entering directory '/home/du/code/snmp/net-snmp-5.7.3/perl/default_store'
make[2]: Leaving directory '/home/du/code/snmp/net-snmp-5.7.3/perl/default_store'
make[2]: Entering directory '/home/du/code/snmp/net-snmp-5.7.3/perl/ASN'
make[2]: Leaving directory '/home/du/code/snmp/net-snmp-5.7.3/perl/ASN'
make[2]: Entering directory '/home/du/code/snmp/net-snmp-5.7.3/perl/OID'
make[2]: Leaving directory '/home/du/code/snmp/net-snmp-5.7.3/perl/OID'
make[2]: Entering directory '/home/du/code/snmp/net-snmp-5.7.3/perl/agent'
make[3]: Entering directory '/home/du/code/snmp/net-snmp-5.7.3/perl/agent/Support'
make[3]: Leaving directory '/home/du/code/snmp/net-snmp-5.7.3/perl/agent/Support'
make[3]: Entering directory '/home/du/code/snmp/net-snmp-5.7.3/perl/agent/default_store'
make[3]: Leaving directory '/home/du/code/snmp/net-snmp-5.7.3/perl/agent/default_store'
rm -f ../blib/arch/auto/NetSNMP/agent/agent.so
cc -shared -L/usr/local/lib -fstack-protector agent.o -o ../blib/arch/auto/NetSNMP/agent/agent.so \
-L/home/du/code/snmp/net-snmp-5.7.3/perl/agent/../../snmplib/.libs -L/home/du/code/snmp/net-snmp-5.7.3/perl/agent/../../snmplib -L/home/du/code/snmp/net-snmp-5.7.3/perl/agent/../../agent -lnetsnmpmibs -lnetsnmpagent -lnetsnmp \
/usr/bin/ld: cannot find -lnetsnmpmibs
/usr/bin/ld: cannot find -lnetsnmpagent
collect2: error: ld returned 1 exit status
Makefile:460: recipe for target '../blib/arch/auto/NetSNMP/agent/agent.so' failed
make[2]: *** [../blib/arch/auto/NetSNMP/agent/agent.so] Error 1
make[2]: Leaving directory '/home/du/code/snmp/net-snmp-5.7.3/perl/agent'
Makefile:490: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory '/home/du/code/snmp/net-snmp-5.7.3/perl'
Makefile:295: recipe for target 'perlmodules' failed
make: *** [perlmodules] Error 1
$perl -v
This is perl 5, version 20, subversion 2 (v5.20.2) built for i686-linux-gnu-thread-multi-64int
(with 51 registered patches, see perl -V for more detail)
Copyright 1987-2015, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
在其他机子上都编译过了,在我自己电脑上就报错,唉。大神们帮忙看看呗,目前我已经通过其他方式安装了。但是就是没明白自己编译的怎么就编译不过呢