Rumah  >  Artikel  >  Topik  >  宝塔安装php不成功怎么办?

宝塔安装php不成功怎么办?

藏色散人
藏色散人asal
2019-08-26 13:25:4414833semak imbas

宝塔安装php不成功怎么办?

宝塔安装php不成功怎么办?

问题

宝塔面板PHP 5.2、5.3、5.4、5.5、5.6、7.0、7.1、7.2所有版本均无法安装。

错误信息

checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking for libcurl.pc... not found
configure: WARNING: Could not find libcurl.pc. Try without /usr/local/curl or set PKG_CONFIG_PATH
configure: WARNING: Fallback: search for curl headers and curl-config
checking for cURL in default path... not found
configure: 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&#39;.  Stop.

故障原因

curl未正确安装

解决方案

# RetHat CentOS or Fedora 使用下面安装命令
yum install curl curl-devel
# Debian or Ubuntu使用下面的安装命令
apt-get install curl
apt-get install libcurl4-gnutls-dev

更多宝塔面板使用技术文章,请访问宝塔使用教程栏目!

Atas ialah kandungan terperinci 宝塔安装php不成功怎么办?. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Artikel sebelumnya:怎么在宝塔添加php文件Artikel seterusnya:宝塔怎么上传文件