Jeff wrote:
This is a clean install of RH 8.0I have the net-snmp (previously ucd-snmp) setup and working great. I tried to use the snmpget command through PHP, but it didn't work. Checked the phpinfo for the --with-snmp stuff, and it wasn't there. Found the RPM for this (php-snmp, that comes on Disk 3), installed it (and rebooted), and now there some entries in the ./configure portion of phpinfo. The problem is that the php code pretty much stops after any snmpxxx command. My theory is that it can find the appropriate command. The wierd thing is that not it says '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' after the RPM install. I think that first option is wrong and should state: '--with-snmp=/usr/bin' How in the heck do I fix this? I'm fairly new to this whole Linux thing, I don't have a great understanding of how I would compile all the apps to make system back to the way it is, etc. Somehow this RPM edited the config (incorrectly) and I would like to fix.
Ditto,
I have been trying to build apache2 + php4 with SNMP support on
redhat 8 all day.. The snmp support from the RPM is quite broken.
If you look in /usr/include you will find two directories
net-snmp
ucd-snmp
ucd-snmp is what php wants.
Of course here is what the .h files look like in there
#ifdef UCD_COMPATIBLE
#include <net-snmp/library/asn1.h>
#else
#error "Please update your headers or configure using --enable-ucd-snmp-compatibility"
#endif
what the hell?
I have a feeling that I will also be going back to fresh source for SNMP
as well...
Thanks Redhat, I didnt *really* like useing RPMS to make my life suck less.
That or perhapse the php developer guys could add another config directive something like
--redhat8-SNMP-sucks-ass-workaround
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php