今天配置一台server的php支持curl的时候, 出现如下报错
checking for cURL in default path… not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
其实就是curl的dev包没有安装, 解决方案:
终端下
# yum -y install curl-devel
然后就可以继续了
suse enterprise 10 sp2: 注意依赖关系的先后:
root@172.25.39.117:~/webserver/software# rpm -ihv libidn-devel-0.6.0-14.2.i586.rpm
Preparing... ########################################### [100%]
1:libidn-devel ########################################### [100%]
root@172.25.39.117:~/webserver/software# rpm -ihv curl-devel-7.15.1-19.7.i586.rpm
Preparing... ########################################### [100%]
1:curl-devel ########################################### [100%]
来源:http://www.hao32.com/webserver/191.html
suse enterprise 10得找到当时的源码包才行,如下:
SUSE LINUX Enterprise Server 9 for x86
header files and libraries for curl development
Version: 7.11.0
Release: 39.1
Medium: CD3
Path: /suse/i586/curl-devel-7.11.0-39.1.i586.rpm
Group: Development/Libraries/C
License: MPL
Size: 334 KB
Homepage: http://curl.haxx.se/
来源:http://www.novell.com/products/linuxpackages/enterpriseserver/i386/curl-devel.html
RPM Search:
http://rpm.pbone.net/index.php3/stat/4/idpl/3084452/dir/suse_10.x/com/curl-devel-7.15.5-1.guru.suse100.i686.rpm.html
http://rpm.pbone.net/
checking for cURL in default path… not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
其实就是curl的dev包没有安装, 解决方案:
终端下
# yum -y install curl-devel
然后就可以继续了
suse enterprise 10 sp2: 注意依赖关系的先后:
root@172.25.39.117:~/webserver/software# rpm -ihv libidn-devel-0.6.0-14.2.i586.rpm
Preparing... ########################################### [100%]
1:libidn-devel ########################################### [100%]
root@172.25.39.117:~/webserver/software# rpm -ihv curl-devel-7.15.1-19.7.i586.rpm
Preparing... ########################################### [100%]
1:curl-devel ########################################### [100%]
来源:http://www.hao32.com/webserver/191.html
suse enterprise 10得找到当时的源码包才行,如下:
SUSE LINUX Enterprise Server 9 for x86
header files and libraries for curl development
Version: 7.11.0
Release: 39.1
Medium: CD3
Path: /suse/i586/curl-devel-7.11.0-39.1.i586.rpm
Group: Development/Libraries/C
License: MPL
Size: 334 KB
Homepage: http://curl.haxx.se/
来源:http://www.novell.com/products/linuxpackages/enterpriseserver/i386/curl-devel.html
RPM Search:
http://rpm.pbone.net/index.php3/stat/4/idpl/3084452/dir/suse_10.x/com/curl-devel-7.15.5-1.guru.suse100.i686.rpm.html
http://rpm.pbone.net/
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/3826/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
最后编辑: jackxiang 编辑于2011-7-20 13:34
评论列表