PHP安装libevent扩展

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
PHP安装 libevent扩展
1. 下载扩展 官方地址/package/libevent 请根据自己的PHP脚本选择相应版本 如 wget /get/libevent-0.0.4.tgz
2. 下载 wget /get/libevent-0.0.4.tgz 解压 tar -zxvf libevent-0.0.4.tgz cd libevent-0.0.4 phpize ./configure --with-php-config=/local/php/bin/php-config 发现报错 显示为re2c版本过低 从/ 下载 wget /projects/re2c/files/re2c/0.13.5/re2c-0.13.5.tar.gz/download 安装之 继续 ./configure --with-php-config=/local/php/bin/php-config 报错 Cannot find libevent headers 需要安装libevent 下载 libevent 官网 / wget https:///downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz tar -zxvf libevent-2.0.20-stable.tar.gz cd libevent-2.0.20-stable ./configure --prefix=/local/libevent-2.0.20-stable/ make && make install 再次安装扩展,加入 --with-libevent ./configure --with-php-config=/home/users/suqian/.jumbo/php/bin/php-config --with-libevent=/local/libevent-2.0.20-stable/ make && make install 之后配置 php.ini 移动 生成的 .so 文件到 php.ini 中配置的 extensions_dir下 并添加配置 extension="
相关文档
最新文档