Difference between revisions of "Template:FAQ:Perl 03"

From Net-SNMP Wiki
Jump to: navigation, search
 
(5.4 release synchronisation)
 
Line 1: Line 1:
The perl module tends to delve quite deeply into the internals of the
+
The Perl module tends to delve quite deeply into the internals of the
 
main Net-SNMP library, and so is quite sensitive to changes within the
 
main Net-SNMP library, and so is quite sensitive to changes within the
 
library.  It's important to use the correct version of the module, that
 
library.  It's important to use the correct version of the module, that
 
corresponds to the version of the library you have installed.  If you're
 
corresponds to the version of the library you have installed.  If you're
working with the main Net-SNMP distribution, the appropriate version of
+
working with a Net-SNMP source distribution, the appropriate versions of
the perl module is shipped as part of this, but you '''must''' have
+
the Perl module are shipped as part of this, but you '''must''' have
 
run <CODE>"make install"</CODE> on the main Net-SNMP distribution '''first'''.
 
run <CODE>"make install"</CODE> on the main Net-SNMP distribution '''first'''.
  
 
If you're working with a ready-installed version of the library, make
 
If you're working with a ready-installed version of the library, make
sure you obtain a compatible version of the perl module.
+
sure you obtain a compatible version of the Perl module.
  
Note that the perl modules will be compiled using the compiler
+
Note that the Perl modules will be compiled using the compiler
 
(and compiler settings) used for compiling the original perl binary,
 
(and compiler settings) used for compiling the original perl binary,
 
'''not''' those used for compiling the Net-SNMP (or UCD) library.
 
'''not''' those used for compiling the Net-SNMP (or UCD) library.
Line 19: Line 19:
  
 
Also note that the v5 Net-SNMP suite '''must''' be configured to provide
 
Also note that the v5 Net-SNMP suite '''must''' be configured to provide
shared libraries in order for the perl modules to work correctly.  This
+
shared libraries in order for the Perl modules to work correctly.  This
 
is not necessary with the v4 UCD-SNMP libraries.
 
is not necessary with the v4 UCD-SNMP libraries.

Latest revision as of 17:57, 28 December 2006

The Perl module tends to delve quite deeply into the internals of the main Net-SNMP library, and so is quite sensitive to changes within the library. It's important to use the correct version of the module, that corresponds to the version of the library you have installed. If you're working with a Net-SNMP source distribution, the appropriate versions of the Perl module are shipped as part of this, but you must have run "make install" on the main Net-SNMP distribution first.

If you're working with a ready-installed version of the library, make sure you obtain a compatible version of the Perl module.

Note that the Perl modules will be compiled using the compiler (and compiler settings) used for compiling the original perl binary, not those used for compiling the Net-SNMP (or UCD) library. If these are different (e.g. 'gcc' used for one and 'cc' for the other) then this may well cause problems. It's much safer to use a consistent environment for both. This issue is discussed in greater detail in the README.solaris file.

Also note that the v5 Net-SNMP suite must be configured to provide shared libraries in order for the Perl modules to work correctly. This is not necessary with the v4 UCD-SNMP libraries.