错误一:error: Package requirements (libsystemd >= 209) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for libsystemd >= 209... no configure: error: Package requirements (libsystemd >= 209) were not met:
No package 'libsystemd' 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 SYSTEMD_CFLAGS and SYSTEMD_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libsystemd-dev
1
apt install -y libsystemd-dev
错误二:error: Cannot find sys/sdt.h which is required for DTrace support
报错信息:
1 2 3 4
checking sys/sdt.h usability... no checking sys/sdt.h presence... no checking for sys/sdt.h... no configure: error: Cannot find sys/sdt.h which is required for DTrace support
解决方法: 安装 systemtap-sdt-dev
1
apt install -y systemtap-sdt-dev
错误三:error: Package requirements (openssl >= 1.0.1) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11 12 13
checking for Kerberos support... no checking whether to use system default cipher list instead of hardcoded value... no checking for openssl >= 1.0.1... no configure: error: Package requirements (openssl >= 1.0.1) were not met:
No package 'openssl' 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 OPENSSL_CFLAGS and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法: 安装 libssl-dev
1
apt install -y libssl-dev
报错四:error: Package requirements (sqlite3 > 3.7.4) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for sqlite3 > 3.7.4... no configure: error: Package requirements (sqlite3 > 3.7.4) 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.
解决方法:
安装 libsqlite3-dev
1
apt install -y libsqlite3-dev
错误五:error: Please reinstall the BZip2 distribution
报错信息:
1 2
checking for BZip2 in default path... not found configure: error: Please reinstall the BZip2 distribution
解决方法:
安装 libbz2-dev
1
apt install -y libbz2-dev
错误六:error: Package requirements (libcurl >= 7.15.5) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for libcurl >= 7.15.5... no configure: error: Package requirements (libcurl >= 7.15.5) were not met:
No package 'libcurl' 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 CURL_CFLAGS and CURL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libcurl4-openssl-dev
1
apt install -y libcurl4-openssl-dev
错误七:error: GNU MP Library version 4.2 or greater required.
报错信息:
1 2
checking for __gmpz_rootrem in -lgmp... no configure: error: GNU MP Library version 4.2 or greater required.
解决方法:
安装 libgmp-dev libgmp-dev
1
apt install -y libgmp-dev
错误八:error: Package requirements (oniguruma) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
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.
解决方法:
安装 libonig-dev
1
apt install -y libonig-dev
错误九:error: Package requirements (libedit) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for libedit... no configure: error: Package requirements (libedit) were not met:
No package 'libedit' 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 EDIT_CFLAGS and EDIT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libedit-dev
1
apt install -y libedit-dev
错误十:error: Problem with enabling dmalloc. Please check config.log for details.
报错信息:
1 2
checking for dmalloc_error in -ldmalloc... no configure: error: Problem with enabling dmalloc. Please check config.log for details.
解决方法:
安装 libdmalloc-dev
1
apt install -y libdmalloc-dev
错误十一:error: Invalid value passed to –enable-fd-setsize!
报错信息:
1
checking how big to make fd sets... configure: error: Invalid value passed to --enable-fd-setsize!
解决方法:
暂时为解决
错误十二:error: Package requirements (libpcre2-8 >= 10.30) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11 12
checking for RAND_egd... no checking for libpcre2-8 >= 10.30... no configure: error: Package requirements (libpcre2-8 >= 10.30) were not met:
No package 'libpcre2-8' 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 PCRE2_CFLAGS and PCRE2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libpcre2-dev
1
apt install -y libpcre2-dev
错误十三:error: Package requirements (enchant) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for enchant... no configure: error: Package requirements (enchant) were not met:
No package 'enchant' 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 ENCHANT_CFLAGS and ENCHANT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
暂时为解决
错误十四:error: Package requirements (libwebp) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for libwebp... no configure: error: Package requirements (libwebp) were not met:
No package 'libwebp' 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 WEBP_CFLAGS and WEBP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libwebp-dev
1
apt install -y libwebp-dev
错误十五:error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing
报错信息:
1
configure:error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing
解决方法:
安装 libc-client2007e-dev
1
apt install -y libc-client2007e-dev
错误十六:error: This c-client library is built with Kerberos support.
报错信息:
1 2 3
configure: error: This c-client library is built with Kerberos support.
Add --with-kerberos to your configure line. Check config.log for details.
解决方法:
根据提示,在编译参数上面添加 --with-kerberos 参数
错误十七:error: Package requirements (krb5-gssapi krb5) were not met
报错信息:
1 2 3 4 5 6 7 8 9 10 11 12 13
checking whether to use system default cipher list instead of hardcoded value... no checking for krb5-gssapi krb5... no configure: error: Package requirements (krb5-gssapi krb5) were not met:
No package 'krb5-gssapi' found No package 'krb5' 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 KERBEROS_CFLAGS and KERBEROS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libkrb5-dev
1
apt install -y libkrb5-dev
错误十八:error: This c-client library is built with SSL support.
报错信息:
1 2 3
configure: error: This c-client library is built with SSL support.
Add --with-imap-ssl to your configure line. Check config.log for details.
解决方法:
根据报错信息,在编译参数后面添加 --with-imap-ssl 参数
错误十九:error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met
报错信息:
1 2 3 4 5 6 7 8 9 10 11 12 13
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.
解决方法:
安装 libzip-dev
1
apt install -y libzip-dev
错误二十:error: Cannot find libtidy
报错信息:
1
configure: error: Cannot find libtidy
解决方法:
安装 libtidy-dev
1
apt install -y libtidy-dev
错误二十一:error: To enable code coverage reporting you must have LTP installed
报错信息:
1 2 3 4
checking whether to include gcov symbols... yes checking for lcov... no checking for genhtml... no configure: error: To enable code coverage reporting you must have LTP installed
解决方法:
安装 lcov
1
apt install -y lcov
错误二十二: error: Package requirements (libffi >= 3.0.11) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for libffi >= 3.0.11... no configure: error: Package requirements (libffi >= 3.0.11) were not met:
No package 'libffi' 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 FFI_CFLAGS and FFI_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libffi-dev
1
apt install -y libffi-dev
错误二十三:error: Package requirements (libxml-2.0 >= 2.7.6) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for libxml-2.0 >= 2.7.6... no configure: error: Package requirements (libxml-2.0 >= 2.7.6) were not met:
No package 'libxml-2.0' 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 LIBXML_CFLAGS and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libxml2-dev
1
apt install libxml2-dev -y
错误二十四:error: Package requirements (libpng) were not met
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for libpng... no configure: error: Package requirements (libpng) were not met:
No package 'libpng' 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 PNG_CFLAGS and PNG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libpng++-dev
1
apt install -y libpng++-dev
错误二十五:error: Package requirements (libjpeg) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for libjpeg... no configure: error: Package requirements (libjpeg) were not met:
No package 'libjpeg' 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 JPEG_CFLAGS and JPEG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libjpeg-dev
1
apt install -y libjpeg-dev
错误二十六:error: Package requirements (xpm) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for xpm... no configure: error: Package requirements (xpm) were not met:
No package 'xpm' 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 XPM_CFLAGS and XPM_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libxpm-dev
1
apt install -y libxpm-dev
错误二十七:error: Package requirements (freetype2) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for freetype2... no configure: error: Package requirements (freetype2) were not met:
No package 'freetype2' 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 FREETYPE2_CFLAGS and FREETYPE2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libfreetype-dev
1
apt install -y libfreetype-dev
错误二十八:error: C++ preprocessor “/lib/cpp” fails sanity check
报错信息:
1 2 3 4 5 6 7 8 9 10 11 12
checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking how to run the C++ preprocessor... /lib/cpp configure: error: in `/usr/local/src/php-7.4.30': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log'for more details root@vm002-ubuntu2204:/usr/local/src/php-7.4.30# apt install -y gcc Reading package lists... Done Building dependency tree... Done Reading state information... Done gcc is already the newest version (4:11.2.0-1ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
解决方法:
安装 g++
1
apt install -y g++
错误二十九:error: Package requirements (expat) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for expat... no configure: error: Package requirements (expat) were not met:
No package 'expat' 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 EXPAT_CFLAGS and EXPAT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
解决方法:
安装 libexpat1-dev
1
apt install -y libexpat1-dev
错误三十:error: Package requirements (libxslt >= 1.1.0) were not met:
报错信息:
1 2 3 4 5 6 7 8 9 10 11
checking for libxslt >= 1.1.0... no configure: error: Package requirements (libxslt >= 1.1.0) were not met:
No package 'libxslt' 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 XSL_CFLAGS and XSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
无法启动 php-fpm ,日志报:ERROR: failed to open error_log (/usr/local/php/var/log/php-fpm.log): Read-only file system (30)
报错信息:
1 2 3 4
Dec 27 11:09:00 vm181-ubuntu22 php-fpm[567553]: [27-Dec-2023 11:09:00] ERROR: failed to open error_log (/usr/local/php/var/log/php-fpm.log): Read-only file system (30) Dec 27 11:09:00 vm181-ubuntu22 php-fpm[567553]: [27-Dec-2023 11:09:00] ERROR: failed to post process the configuration Dec 27 11:09:00 vm181-ubuntu22 php-fpm[567553]: [27-Dec-2023 11:09:00] ERROR: FPM initialization failed Dec 27 11:09:00 vm181-ubuntu22 php-fpm[567553]: profiling:/usr/local/src/php-7.4.30/sapi/fpm/fpm/.libs/fpm_systemd.gcda:Cannot open