cd git clone https://gitee.com/gougucms/office.git的目录下
composer install
错误记录
安装PHP环境报错
libxml-2.0 >= 2.9.4… no
报错信息:
checking for libxml-2.0 >= 2.9.4... no configure: error: Package requirements (libxml-2.0 >= 2.9.4) were not met:
Requested 'libxml-2.0 >= 2.9.4' but version of libXML is 2.9.1
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBXML_CFLAGS and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
checking for openssl >= 1.1.1... no configure: error: Package requirements (openssl >= 1.1.1) were not met:
Requested 'openssl >= 1.1.1' but version of OpenSSL is 1.0.2k
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables OPENSSL_CFLAGS and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details
checking for sqlite3 >= 3.7.7... no configure: error: Package requirements (sqlite3 >= 3.7.7) were not met:
No package 'sqlite3' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables SQLITE_CFLAGS and SQLITE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
安装
yum install sqlite-devel
验证
pkg-config --modversion sqlite3
checking for zlib >= 1.2.11… no
checking for zlib >= 1.2.11... no configure: error: Package requirements (zlib >= 1.2.11) were not met:
Requested 'zlib >= 1.2.11' but version of zlib is 1.2.7
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables ZLIB_CFLAGS and ZLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
重新安装
wget http://www.zlib.net/zlib-1.3.1.tar.gz
./configure make sudo make install
pkg-config --modversion zlib
checking for libcurl >= 7.61.0… no
checking for libcurl >= 7.61.0... no configure: error: Package requirements (libcurl >= 7.61.0) were not met:
Requested 'libcurl >= 7.61.0' but version of libcurl is 7.29.0 You may find new versions of libcurl at http://curl.haxx.se/
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables CURL_CFLAGS and CURL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
wget https://curl.se/download/curl-7.61.0.tar.gz tar -xzvf curl-7.61.0.tar.gz cd curl-7.61.0
./configure make sudo make install
pkg-config --modversion libcurl
Cannot find ldap libraries in /usr/lib. 和 Cannot find ldap libraries in /usr/lib.
configure: error: c configure: error: Cannot find ldap libraries in /usr/lib.
checking for oniguruma... no configure: error: Package requirements (oniguruma) were not met:
No package 'oniguruma' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables ONIG_CFLAGS and ONIG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:
No package 'libzip' found No package 'libzip' found No package 'libzip' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBZIP_CFLAGS and LIBZIP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.