Difference between revisions of "Installing the NetSNMP module for MSWin32"

From Net-SNMP Wiki
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
How do I install the NetSNMP.ppd package for MSWin32?
 
How do I install the NetSNMP.ppd package for MSWin32?
 +
 +
Why do I get "ppm install failed: The PPD does not provide code to install for this platform" when I run the command '''ppm install NetSNMP.ppd'''?
  
 
== Answer ==
 
== Answer ==
  
Modify the NetSNMP.ppd package so that the VERSION attribute of the SOFTPKG tag contains the version of ActivePerl currently installed on your system.
+
Modify the NetSNMP.ppd package so that the NAME attribute of the ARCHITECTURE tag contains the version of ActivePerl currently installed on your system.
  
 
For example, if the command '''perl -v''' returns:
 
For example, if the command '''perl -v''' returns:
  
<tt>This is perl, v5.10.0 built for MSWin32-x86-multi-thread
+
:<tt>This is perl, v5.10.0 built for MSWin32-x86-multi-thread ... </tt>
(with 5 registered patches, see perl -V for more detail)
+
...</tt>
+
  
then you would modify the <SOFTPKG> tag in NetSNMP.ppd as follows:
+
then you would modify the <ARCHITECTURE> tag in NetSNMP.ppd as follows:
  
<tt><SOFTPKG NAME="NetSNMP" VERSION="5,10,0"></tt>
+
:<tt><ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.10" /></tt>
  
 
Executing the command '''ppm install NetSNMP.ppd''' should now work.
 
Executing the command '''ppm install NetSNMP.ppd''' should now work.
  
[[ Category:MSWin32 ]]
+
[[Category:Installation]]

Latest revision as of 15:17, 13 June 2008

Good Answer

This is a Good Answer article. It was likely created as a response to a question on a Net-SNMP Mailing List and written up here for others to see. It likely covers material not yet in the FAQ or in the Tutorial but may someday be moved there

Question

How do I install the NetSNMP.ppd package for MSWin32?

Why do I get "ppm install failed: The PPD does not provide code to install for this platform" when I run the command ppm install NetSNMP.ppd?

Answer

Modify the NetSNMP.ppd package so that the NAME attribute of the ARCHITECTURE tag contains the version of ActivePerl currently installed on your system.

For example, if the command perl -v returns:

This is perl, v5.10.0 built for MSWin32-x86-multi-thread ...

then you would modify the <ARCHITECTURE> tag in NetSNMP.ppd as follows:

<ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.10" />

Executing the command ppm install NetSNMP.ppd should now work.