RE: perl and mib2c
Adam Bell <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I think I found some resolution to this. To build mib2c you must have perl modules turned on WITHIN the net-snmp build and have it INSTALLED. Here is the procedure that worked for me using v5.2.3. Run configure (see config for mib2c below) Make Make install Cd perl Perl Makefile.PL -NET-SNMP-IN-SOURCE=true Make Cd .. Make install (this picks up any new objects from the mib2c build) The original make warning now states Prerequisite SNMP::OID 5.1 not found, We have 5.02.03. The various objects for the mib2c script build successfully. Mib2c will run now only before the next install of net-snmp that has perl-modules disabled. Then to get your real SNMP agent built Make distclean Run configure with your options (see config below for a minimal agent) Make Make install (mib2c will not run now) Mib2c agent build ./configure \ --enable-ipv6 \ --with-default-snmp-version=3 \ [email protected] \ --with-sys-location=Belcamp,Maryland \ --with-persistent-directory=/var/net-snmp \ --with-persistent-mask=0x644 \ --with-logfile=/var/log/snmpd.log \ --with-perl-modules Minimal agent config ./configure \ --disable-debugging --enable-mini-agent --without-keymem-usage --disable-mib-loading \ --disable-applications --disable-manuals --disable-scripts --with-cflags="-DINET6 -O2 -DLinux" \ --without-openssl --with-transports=UDP,UDPIPv6 --with-out-transports=TCPIPv6,TCP,AAL5PVC,IPX,Unix,Callback \ --enable-ipv6 \ --disable-snmpv1 --disable-snmpv2c --with-default-snmp-version=3 \ [email protected] \ --with-sys-location=Belcamp,Maryland \ --with-persistent-directory=/var/net-snmp \ --with-persistent-mask=0x644 \ --with-logfile=/var/log/snmpd.log \ --with-server-send-buf=8192 \ --with-server-recv-buf=8192 \ --with-client-send-buf=8192 \ --with-client-recv-buf=8192 _____ From: [email protected] [mailto:[email protected]] On Behalf Of Adam Bell Sent: Tuesday, February 20, 2007 10:20 AM To: [email protected] Subject: FW: perl and mib2c Reposting a bounced message from yesterday _____ From: Adam Bell Sent: Monday, February 19, 2007 4:27 PM To: [email protected] Subject: perl and mib2c I am trying to build mib2c and I am getting an error OID 5.1 not found. I did find many references to this in the archives - but no resolution. I ran perl Makefile.pl -NET-SNMP-IN-SOURCE=TRUE but this leads to a dereference on an incomplete type. I do not understand how building mib2c requires perl compilation into the SNMP library components? I have all perl turned off in the snmp builds. What extra steps are required to build mib2c? Adam J. Bell Technical Director SafeNet Inc. cell 443-838-5361 Office 443-327-1340 [email protected] <mailto:[email protected]> The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it. The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it. The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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