我的环境
RHEL AS4U4
apache 2.0
php 4.4.9和php 5.2.9
mysql 4首先解压tar.gz,进入目录输入./configure --prefix=/usr/local/php --with-apxs2=/usr/local/www/bin/apxs --with-config-file-path=/usr/local/php --enable-sockets --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/include --with-gd --with-snmp=/usr/include/net-snmp
这一步OK,没有任何报错。然后make,到一半出现如下报错:
/home/jfan/install/php-5.2.9/ext/snmp/snmp.c:79:18: asn1.h: No such file or directory
/home/jfan/install/php-5.2.9/ext/snmp/snmp.c:80:22: snmp_api.h: No such file or directory
/home/jfan/install/php-5.2.9/ext/snmp/snmp.c:81:25: snmp_client.h: No such file or directory
/home/jfan/install/php-5.2.9/ext/snmp/snmp.c:82:23: snmp_impl.h: No such file or directory
太多了,不粘贴了。
net-snmp是用RPM方式安装的有没有解决办法?最终目的是要安装IPPlan,如果把snmp编译到php中去,就能在这个软件中自动导路由表了。