Discussion:
net-snmp make error : cannot find -lperl
deepak.sachan deepak.sachan
2017-01-10 06:05:18 UTC
Permalink
Hello friends
During net-snmp installation following error message shows. I think this must some library linking issue.
Need help to resolve this
up/agentx/.libs/subagent.o mibgroup/utilities/.libs/execute.o mibgroup/utilities/.libs/iquery.o mibgroup/mibII/.libs/vacm_conf.o mibgroup/agentx/.libs/protocol.o mibgroup/agentx/.libs/client.o mibgroup/agentx/.libs/master_admin.o mibgroup/agentx/.libs/agentx_config.o -Wl,-rpath -Wl,/home/deepak/Desktop/net-snmp-5.7.3/snmplib/.libs ../snmplib/.libs/libnetsnmp.so -L/usr/local/lib -L/usr/lib/perl/5.18/CORE -lperl -ldl -lpthread -lc -lcrypt -lm -O2 -fstack-protector -Wl,-E -fstack-protector -Wl,-soname -Wl,libnetsnmpagent.so.30 -o .libs/libnetsnmpagent.so.30.0.3
/usr/bin/ld: cannot find -lperl
collect2: error: ld returned 1 exit status
make[1]: *** [libnetsnmpagent.la] Error 1
make[1]: Leaving directory `/home/deepak/Desktop/net-snmp-5.7.3/agent'
make: *** [subdirs] Error 1
Thanks
Rajmohan Banavi
2017-01-10 06:49:57 UTC
Permalink
This indicates that perl is missing on the system. Depending on the package
manager for your system, you can use yum/apt/others to install perl first
and then later try to build net-snmp.

You could also try to build without perl support but you will lose some
utilities

./configure --prefix=/tmp/local/ --with-defaults --disable-embedded-perl
--without-perl-modules



On Tue, Jan 10, 2017 at 11:35 AM, deepak.sachan deepak.sachan <
Post by deepak.sachan deepak.sachan
Hello friends
During net-snmp installation following error message shows. I think this
must some library linking issue.
Need help to resolve this
up/agentx/.libs/subagent.o mibgroup/utilities/.libs/execute.o
mibgroup/utilities/.libs/iquery.o mibgroup/mibII/.libs/vacm_conf.o
mibgroup/agentx/.libs/protocol.o mibgroup/agentx/.libs/client.o
mibgroup/agentx/.libs/master_admin.o mibgroup/agentx/.libs/agentx_config.o
-Wl,-rpath -Wl,/home/deepak/Desktop/net-snmp-5.7.3/snmplib/.libs
../snmplib/.libs/libnetsnmp.so -L/usr/local/lib -L/usr/lib/perl/5.18/CORE
-lperl -ldl -lpthread -lc -lcrypt -lm -O2 -fstack-protector -Wl,-E
-fstack-protector -Wl,-soname -Wl,libnetsnmpagent.so.30 -o
.libs/libnetsnmpagent.so.30.0.3
/usr/bin/ld: cannot find -lperl
collect2: error: ld returned 1 exit status
make[1]: *** [libnetsnmpagent.la] Error 1
make[1]: Leaving directory `/home/deepak/Desktop/net-snmp-5.7.3/agent'
make: *** [subdirs] Error 1
Thanks
The contents of this Email communication are confidential to the
addressee. If you
are not the intended recipient you may not disclose or distribute this
communication
in any form should immediately contact the sender. The information,
images, documents
and views expressed in this Email are personal to the Sender and do not
expressly or
implicitly represent official positions of DRDO and no authority exists on
behalf of
DRDO to make any agreements, or other binding commitment by means of Email.
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Net-snmp-users mailing list
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Loading...