环境:
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 |