1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<section id="snmp.installation">
&reftitle.install;
<para>
Important: In order to use the UCD SNMP package, you need to define
<literal>NO_ZEROLENGTH_COMMUNITY</literal> to <literal>1</literal> before
compiling it. After configuring UCD SNMP, edit <filename>config.h</filename>
or <filename>acconfig.h</filename> and search for
<literal>NO_ZEROLENGTH_COMMUNITY</literal>. Uncomment the #define line. It
should look like this afterwards:
<programlisting role="c">
<![CDATA[
#define NO_ZEROLENGTH_COMMUNITY 1
]]>
</programlisting>
Now compile PHP <option role="configure">--with-snmp[=DIR]</option>.
</para>
<para>
If you see strange segmentation faults in combination with SNMP commands,
you did not follow the above instructions. If you do not want to recompile
UCD SNMP, you can compile PHP with the
<option role="configure">--enable-ucd-snmp-hack</option> switch which
will work around the misfeature.
</para>
<para>
The Windows distribution contains support files for SNMP in the
<filename class="directory">mibs</filename> directory. This directory
should be moved to <filename class="directory">DRIVE:\usr\mibs</filename>,
where DRIVE must be replaced with the driveletter where PHP is installed on,
e.g.<filename class="directory">c:\usr\mibs</filename>.
</para>
</section>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
|