RHEL中PHP带--with-snmp编译报错
我的环境
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中去,就能在这个软件中自动导路由表了。
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中去,就能在这个软件中自动导路由表了。
...全文
相关推荐
RHEL 6 zabbix安装文档
/configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl -
RHEL_5_源代码安装cacti监控
**三、安装PHP**1. 下载PHP源代码,例如从 http://php.net 获取。2. 解压缩并编译安装,确保在编译时启用所需的模块,如MySQL、gd等。3.
RHEL5.5环境下Cacti的安装配置和维护
##### 3.2.4 安装RRDToolRRDTool的安装可以通过源码编译或包管理器进行,具体步骤包括下载源码、配置、编译和安装。
Cacti中文版在Centos5(Rhel5)上的安装
【Cacti中文版在CentOS 5 (RHEL 5) 上的安装】Cacti是一款基于PHP、MySQL、SNMP以及RRDTool的网络监控工具,它提供了丰富的图表来展示网络设备的性能数据。
CACTI安裝說明--CACTI軟件安裝說明
- **PHP**: 用来处理Web界面和与MySQL交互。 可以通过源码编译或使用`yum`命令安装RPM包。如果选择源码编译,你需要先下载相应软件包,然后解压、配置、编译并安装。


