[EMAIL PROTECTED] wrote:
Hello
I am trying to compile the example mib module from the net-snmp toolkit
section into the Master Agent on Windows. But while running the Configure
script i.e. ‘perl Configure –with-mib-modules <modulename>)’ I get an error
saying “Can't exec /bin/sh at Configure line 1.” I get this error even on
running configure script without any arguments. I have Active perl
installed in my system. I don’t have good knowledge on perl n so didn’t go
to look into the script. Could anyone let me know what is it that I am doing wrong here? Do I need
to have any other installation required to run the configure script ?
BTW, I am executing the Configure script from the net-snmp-5.2.1 source
base folder.

If you are using MinGW (with MSYS shell) or Cygwin, then you can run configure just like a *nix system by running ./configure at the top of the net-snmp source folder. The configure script is a shell script, not Perl so do not prefix it with 'perl'.


If you are using MSVC, then you need to use the Perl Configure script inside the win32 folder. This is a very simple script and it does not accept -with-mib-modules or any of the other regular configure script options. Run perl Configure -h to get a list of available options. The purpose of this script is to eliminate the need to manually compile using the Visual Studio workspace. Build.bat is a simple menu front end that will take care of running Configure, nmake etc.

For MSVC, you will need to modify the Make files, source files etc directly. For example, you probably want to modify win32\net-snmp\agent\mib_module_config.h to select the MIBS to be compiled.

Alex


------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to