问题
宝塔面板php 5.2、5.3、5.4、5.5、5.6、7.0、7.1、7.2所有版本均无法安装。
错误信息
checking whether to enable calendar conversion support... nochecking whether to enable ctype functions... yeschecking for curl support... yeschecking for libcurl.pc... not foundconfigure: warning: could not find libcurl.pc. try without /usr/local/curl or set pkg_config_pathconfigure: warning: fallback: search for curl headers and curl-configchecking for curl in default path... not foundconfigure: error: please reinstall the libcurl distribution -easy.h should be in <curl-dir>/include/curl/make: *** no targets specified and no makefile found. stop.make: *** no rule to make target `install'. stop.
故障原因
curl未正确安装
解决方案
# rethat centos or fedora 使用下面安装命令yum install curl curl-devel# debian or ubuntu使用下面的安装命令apt-get install curlapt-get install libcurl4-gnutls-dev
更多宝塔面板使用技术文章,请访问宝塔使用教程栏目!
以上就是宝塔安装php不成功怎么办?的详细内容。
