Linux 下 PHP 扩展 cURL 编译安装,linuxcurl
下载 cURL http://pan.baidu.com/s/1hqrHWkG (curl-7.39.0.tar.gz) 3.98MB
解压:
[plain] view plain
copy
- tar zxvf curl-7.39.0.tar.gz
- ./configure --prefix=/usr/local/curl
[plain] view plain
copy
- make && make install
安装 curl 成功后,进入 php 的源码包(非php安装地址)
[plain] view plain
copy
- cd /var/soft/php-5.3.19/ext/curl
- /usr/local/php/bin/phpize 注:/usr/local/php 为我的php安装目录
- ./configure --with-php-config=/usr/local/php/bin/php-config --with-curl=/usr/local/curl/
- make && make install
成功后出现 curl.so 的所在目录
打开 php.ini 添加 extension=xxx/curl.so
重启 apache 即可。
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn