Timothy, Here is the break down:
1. Download ucd-snmp tar.gz file. 2. Download openssl tar.gz file. You will need openssl for snmp v3 for the security stuff. Uninstall ucd-snmp if it is installed on your system. Uninstall openssl on your system. 3. Untar the files... 4. In the ucd-snmp directory find the file config.h and locate the NO_ZEROLENGTH_COMMUNITY and uncomment the line if commented and set to 1. 5. Configure, make, make install the ucd-snmp 6. Configure, make, make install the openssl ***NOTE: Do a "make clean" in the php directory. Then remove the config.cache file from the php directory.*** 7. Configure php with snmp Example: ./configure --prefix=/usr/local/php --with-snmp=/usr/local/snmp --with-openssl=/usr/local/openssl --with-apxs=/usr/bin/apxs make make install This should work for you. ***NOTE: THINGS I HAVE TRIED*** 1. I have tried to compile php with the openssl and snmp rpms. However, php chokes on the openssl rpm. 2. If you want to try it with your already installed rpms, here is the configuration that I have tried. ./configure --prefix=/usr/local/php --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --oldincludedir=/usr/include --with-config-file-path=/etc --with-apxs=/usr/sbin/apxs --with-pear --enable-sigchild --enable-magic-qoutes --enable-libgcc --enable-bcmath --enable-calendar --enable-ctype --enable-dbx --enable-ftp --enable-gd-native-ttf --enable-trans-sid --enable-shmop --enable-ucd-snmp-hack --enable-sockets --enable-wddx --enable-yp --enable-inline-optimization --with-xml --disable-debug --enable-pic --enable-shared --with-regex=system --with-gettext --with-gd --with-jpeg-dir=/usr --with-zlib --enable-safe-mode --enable-sysvsem --enable-sysvshm --enable-debugger --with-gdbm --with-db2 --with-db3 --with-png --with-openssl=/usr/include/openssl The problem that I faced here is that php chokes on finding the evp.h header file in the openssl directory. I look in the directory and it is there. Let me know if I can help you further. Ray Hunter Firmware Engineer ENTERASYS NETWORKS Ray Hunter Firmware Engineer ENTERASYS NETWORKS -----Original Message----- From: Timothy R. Robnett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 8:46 AM To: [EMAIL PROTECTED] Subject: [PHP-INST] SNMP support not working Greetings, I have downloaded and compiled the latest source for both UCD-SNMP and PHP. After a "successful" compile of both packages I can use the basic functions of both UCD-SNMP via the provided command line tools and I can get PHP to work with MySQL. When I attempt to run code that worked on PHP 4.0.6 and UCD-SNMP 4.2 I get a "Call to undefined function: snmpget()." Also when looking at phpinfo() I see at the top where it lists out what my configure statement was but down below I find no reference to SNMP anywhere. This also differs from my old PHP 4.0.6 install. I did find a reference on www.php.net to adding a #include <default_store.h> to the top of the snmp.c file in the source tree. I did that as well and recompiled but to no avail. Any other ideas. Thanks. Sincerely, Timothy R. Robnett mailto:[EMAIL PROTECTED] http://www.robnett.net/~tim/ *************************************************** "Americans are so enamored of equality, that they would rather be equal in slavery than unequal in freedom." Alexis de Tocqueville - Democracy in America Vol. I, 1835 *************************************************** -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php