compile php with snmp support

ne0phyte

Verified User
Joined
Mar 18, 2006
Messages
7
Hi,

anyone know an easy way to recompile php with snmp support?

i have tried to manually compile it with --with-snmp=/usr/include/net-snmp and with --with-snmp=/usr/include/linux but when i try to make i get these kinds of errors :

/usr/local/directadmin/customapache/php-4.4.7/ext/snmp/snmp.c:85:18: asn1.h: No such file or directory
/usr/local/directadmin/customapache/php-4.4.7/ext/snmp/snmp.c:86:22: snmp_api.h: No such file or directory
/usr/local/directadmin/customapache/php-4.4.7/ext/snmp/snmp.c:87:25: snmp_client.h: No such file or directory

and so on...

any ideas?
 
if anyone else has this problem, i solved it by adding following to configure.php:

--with-snmp

not specifying a dir and i had to install following packages for it to compile (debian):

apt-get install libltdl3 libltdl3-dev
 
Back
Top