PHP编译动态文件
2015-07-28 16:51
483 查看
PHP编译动态文件(centos)
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
解决方法:yum install -y autoconf
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
解决方法:yum install -y libcurl libcurl-devel
PHP编译动态库curl.so步骤:
(1)cd到php的源码目录的curl下
cd /usr/local/src/php-5.4.43/curl
(2)生成configure文件
/usr/local/php/bin/phpize
(3)./configure –with-php-config=/usr/local/php/bin/config
(4)make
(5)make install
(6)编辑php.ini文件(/usr/local/php/etc/php.ini),找到;extension在其末尾添加extension=curl.so
查看php加载了哪些动态库:
grep ‘^extension=’ /usr/local/php/etc/php.ini
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
解决方法:yum install -y autoconf
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
解决方法:yum install -y libcurl libcurl-devel
PHP编译动态库curl.so步骤:
(1)cd到php的源码目录的curl下
cd /usr/local/src/php-5.4.43/curl
(2)生成configure文件
/usr/local/php/bin/phpize
(3)./configure –with-php-config=/usr/local/php/bin/config
(4)make
(5)make install
(6)编辑php.ini文件(/usr/local/php/etc/php.ini),找到;extension在其末尾添加extension=curl.so
查看php加载了哪些动态库:
grep ‘^extension=’ /usr/local/php/etc/php.ini
相关文章推荐
- 下载文件的php代码
- hdu 1089 A+B for Input-Output Practice (I)
- PHP的$_GET[]与$_POST[]的使用方法相关
- yourphp二次开发目录
- php 丢失 msvcr110.dll的解决!
- php按键跳转网页
- stagefrightplayer调用过程2
- php错误解决
- 搞不清FastCgi与PHP-fpm之间是个什么样的关系
- 如何实现php图片等比例缩放
- 坑爹的BOM PHP
- stagefrightplayer调用过程
- php 文件下载
- 分页小改进
- VSFTP服务
- PHP封装CURL扩展类实例
- IIS 6 + PHP 5.2 不能加载mssql.dll问题排除
- ThinkPHP项目iis部署一些问题
- [php] 3个多文件上传(uploadify、file upload、 webuploader)
- php图像处理类实例