PHP安装问题集锦

环境:
Ubuntu-16.4
PHP-7.1.7

安装前准备:

$ sudo apt update
$ sudo apt upgrade


error: xml2-config not found. Please check your libxml2 installation.

$ sudo apt install libxml2-dev


error: Cannot find OpenSSL's <evp.h>
ps:一开始安装的openssl,但还是报这错,后来安装libssl-dev,问题解决。所以不知道是要两个一起安装,还是只安装libssl-dev就行。

$ sudo apt install openssl libssl-dev


error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/

$ sudo apt install libcurl4-openssl-dev


error: jpeglib.h not found.

$ sudo apt install libjpeg-dev


error: png.h not found.

$ sudo apt install libpng-dev


error: freetype-config not found.

$ sudo apt install libfreetype6-dev


error: mcrypt.h not found. Please reinstall libmcrypt.

$ sudo apt install libmcrypt-dev


error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

$ sudo apt install libxslt-dev

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值