net-snmp编译问题
编译net-snmp的时候总是抱怨找不到-lperl
- sudo ./configure --with-cc=armeb-linux-gcc --host=armeb-linux --enable-mini-agent --disable-ipv6 --with-endianness=little --disable-applications --disable-manuals --disable-scripts --disable-embeded-perl --disable-perl --with-mib-modules="mtiw/netSNMPMIB"
复制代码
如何才能不让snmp包含perl模块呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一个回答的人都没有,没有人做过这样的编译吗?
从网上考的,不知道对你是否有帮助.
net-snmp 5.1.2 building options should be
CFLAGS="-isystem /usr/local/arm/3.0/arm-linux/include"
CPPFLAGS="-isystem /usr/local/arm/3.0/arm-linux/include"
./configure --target=arm-linux --host=arm --build=i686
--with-cc=arm-linux-gcc --with-ar=arm-linux-ar
--with-endianness=little
--prefix=/usr --exec-prefix=/usr --with-install-prefix=/nfsroot
******to build everything
CFLAGS="-isystem/usr/local/arm/3.0/arm-linux/include"
CPPFLAGS="-isystem/usr/local/arm/3.0/arm-linux/include"
./configure --target=arm-linux --host=arm --build=i686
--with-cc=arm-linux-gcc --with-ar=arm-linux-ar
--with-endianness=little
--disable-applications --disable-manuals --disable-scripts
--enable-mini-agent --prefix=/usr --exec-prefix=/usr
--with-install-prefix=/nfsroot
*******for the mini-agent
CFLAGS="-isystem /usr/local/arm/3.0/arm-linux/include"
CPPFLAGS="-isystem /usr/local/arm/3.0/arm-linux/include"
./configure --target=arm-linux --host=arm --build=i686
--with-cc=arm-linux-gcc --with-ar=arm-linux-ar
--with-endianness=little
--disable-applications --disable-manuals --disable-scripts
--prefix=/usr
--exec-prefix=/usr --with-install-prefix=/nfsroot
******for the standard agent
--prefix and --exec-prefix means that net-snmp will be located in /usr
of your embedded device ,the difference between both is that one is for share component and the
other for specific device i guess
原文地址 http://lists.arm.linux.org.uk/
http://net-snmp.sourceforge.net/