deepak.sachan deepak.sachan
2017-01-16 04:40:48 UTC
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
By doing some googling I resolved this problem by symbolic linking
$ sudo ln -s /usr/lib/libperl.so.5.18 /usr/lib/libperl.so
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
By doing some googling I resolved this problem by symbolic linking
$ sudo ln -s /usr/lib/libperl.so.5.18 /usr/lib/libperl.so