Obviously make sure you keep the VC++ redistributable installed. One you've installed Net-SNMP, you can uninstall and delete everything else just fine (Active Perl, Visual Studio, OpenSSL, etc.) and Net-SNMP will still work. Manual step: edit net-snmp\net-snmp-config.h, comment out #define snprintf (this is fixed in their git repository) Perl Configure -with-sdk -with-winextdll -with-ssl -with-ipv6 -config=release -linktype=static -prefix="c:/Program Files/Net-SNMP" Set INCLUDE=%INCLUDE% C:\OpenSSL-Win64\include Unzip the source code, and in the win32 directory: call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" 圆4 That last step renames the OpenSSL static library to something that Net-SNMP expects. Move C:\OpenSSL-Win64\lib\libea圓2.lib C:\OpenSSL-Win64\lib\libea圓2MD.lib Perl Configure VC-WIN64A -prefix=C:\OpenSSL-Win64 Unzip the source code, and in the same directory: call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" 圆4 Note that the version of Visual Studio you use will effect the paths used below in the compilation instructions, so modify the path below accordingly if you're using something other than the 2015 edition.įirst, compile OpenSSL for Windows 圆4. Prerequisites: Active Perl 圆4, Visual Studio Community Edition (I used 2015). The official documentation for how to do this is incredibly lengthy, erroneous, and outdated. I'll also provide you with the exact steps I used to compile the binaries, so at least this can be documented concisely somewhere on the Internet. And that's how you install Net-SNMP for Windows 圆4. Remember to add an exception to your Windows firewall for the snmpd.exe executable. To install the agent as a Windows service. Edit etc\snmp\nf (or run bin\snmpconf) to configure the agent. You should be able to run the bin\snmpd.exe file to launch the agent. Unzip the archive to C:\Program Files\Net-SNMP. You can download the binaries here: īecause I compiled this with Visual Studio 2015, you will also have to install the Visual C++ Redistributable for Visual Studio 2015 from here: It's bizarre.Īnyways, I recently built 5.7.3 for Windows 64-bit (with full support for SSL, IPv6, and SNMP extension DLLs). Yeah, I really don't know why Net-SNMP doesn't distribute prebuilt binaries with their code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |