Installing Net-SNMP on Bash on Ubuntu on Windows

Christian Salem <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <YTOPR0101MB14184F1FDB8809CB86AB3FCEA8EF0@YTOPR0101MB1418.CANPRD01.PROD.OUTLOOK.COM>
Hi all,

I am new to net-snmp and would greatly appreciate any help you guys can provide.
I'm working on Bash on Ubuntu on Windows, trying to install net-snmp in a Linux environment. I followed the instructions here<https://www.maketecheasier.com/net-snmp-part-1/>.
I installed all the required dependencies for net-snmp but when I try to run the make command, I get the following output at the end before it stops:

"
...
make[1]: Entering directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/mibs'
make[1]: Leaving directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/mibs'
make[1]: Entering directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/perl'
make[2]: Entering directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/perl/default_store'
Manifying 1 pod document
Can't write-open ../blib/man3/NetSNMP::default_store.3pm: Invalid argument at /usr/share/perl/5.22/ExtUtils/Command/MM.pm line 147.
Makefile:493: recipe for target 'manifypods' failed
make[2]: *** [manifypods] Error 22
make[2]: Leaving directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/perl/default_store'
Makefile:484: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/perl'
Makefile:295: recipe for target 'perlmodules' failed
make: *** [perlmodules] Error 1
"
then I tried to run the make install command afterwards but it gave the following output:

"
...
libtool: install: /usr/bin/install -c -m 644 ./NET-SNMP-EXTEND-MIB.txt /usr/local/share/snmp/mibs/NET-SNMP-EXTEND-MIB.txt
install: installed NET-SNMP-EXTEND-MIB.txt in /usr/local/share/snmp/mibs
libtool: install: /usr/bin/install -c -m 644 ./UCD-DLMOD-MIB.txt /usr/local/share/snmp/mibs/UCD-DLMOD-MIB.txt
install: installed UCD-DLMOD-MIB.txt in /usr/local/share/snmp/mibs
libtool: install: /usr/bin/install -c -m 644 ./SNMP-NOTIFICATION-MIB.txt /usr/local/share/snmp/mibs/SNMP-NOTIFICATION-MIB.txt
install: installed SNMP-NOTIFICATION-MIB.txt in /usr/local/share/snmp/mibs
libtool: install: /usr/bin/install -c -m 644 ./SNMPv2-TM.txt /usr/local/share/snmp/mibs/SNMPv2-TM.txt
install: installed SNMPv2-TM.txt in /usr/local/share/snmp/mibs
libtool: install: /usr/bin/install -c -m 644 ./NET-SNMP-VACM-MIB.txt /usr/local/share/snmp/mibs/NET-SNMP-VACM-MIB.txt
install: installed NET-SNMP-VACM-MIB.txt in /usr/local/share/snmp/mibs
libtool: install: /usr/bin/install -c -m 644 ./DISMAN-SCHEDULE-MIB.txt /usr/local/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt
install: installed DISMAN-SCHEDULE-MIB.txt in /usr/local/share/snmp/mibs
make[1]: Leaving directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/mibs'
make[1]: Entering directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/perl'
make[2]: Entering directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/perl/default_store'
Manifying 1 pod document
Can't write-open ../blib/man3/NetSNMP::default_store.3pm: Invalid argument at /usr/share/perl/5.22/ExtUtils/Command/MM.pm line 147.
Makefile:493: recipe for target 'manifypods' failed
make[2]: *** [manifypods] Error 22
make[2]: Leaving directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/perl/default_store'
Makefile:484: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory '/mnt/c/Users/c_salem/Desktop/netsnmpinstall/net-snmp-5.7.3/perl'
Makefile:308: recipe for target 'perlinstall' failed
make: *** [perlinstall] Error 1
"

Finally I run apt-get install snmpd, then  /etc/init.d/snmpd start but I get the following error:

"
* Starting SNMP services:
/usr/sbin/snmpd: symbol lookup error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd
"
I do realize that snmpd isn't running correctly because of a compilation error in the make command but I thought I try to see the result.
I tried to look up the error messages online and to look around in the directories but couldn't find a solution.

I know that what I'm trying to do might not be recommended but it would really help if I find a way to make it work.

Looking forward to your reply!
Thank you,
Chris

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.