CentOS编译错误+配置错误解决方法集合

Linux文章/教程评论486阅读模式

ERROR: the HTTP XSLT module requires the libxml2/libxslt

yum -y install libxml2 libxml2-dev
yum -y install libxslt-devel

ERROR: the HTTP image filter module requires the GD library.文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum -y install gd-devel

ERROR: the GeoIP module requires the GeoIP library.文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum -y install GeoIP GeoIP-devel GeoIP-data

ERROR: the Google perftools module requires the Google perftools文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum -y install gperftools

ERROR: libatomic_ops library was not found.文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum -y install libuuid-devel libblkid-devel libudev-devel fuse-devel libedit-devel libatomic_ops-devel

ERROR trying to exec 'cc1plus': execvp: No such file or directory文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum -y install gcc-c++

ERROR: [pool www] cannot get uid for user 'www-data'文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

groupadd www-data
useradd -g www-data www-data

configure: ERROR: mbed TLS libraries not found.
需要安装mbedtls,教程:https://www.24kplus.com/linux/281.html文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

ERROR: Cannot find OpenSSL's <evp.h>文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum install openssl openssl-devel
ln -s /usr/lib64/libssl.so /usr/lib/

ERROR: Libtool library used but 'LIBTOOL' is undefined文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum install libtool

exec: g++: not found文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum -y update gcc
yum -y install gcc+ gcc-c++

configure: ERROR: tss lib not found: libtspi.so文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum install trousers-devel

Can't exec "autopoint": No such file or directory文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum install gettext gettext-devel gettext-common-devel

configure: ERROR: libcrypto not found.文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum remove openssl-devel
yum -y install openssl-devel

configure: ERROR: Package requirements (libffi >= 3.0.0) were not met: No package 'libffi' found文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum install libffi-devel

fatal ERROR: uuid.h: No such file or directory文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum install e2fsprogs-devel uuid-devel libuuid-devel

configure: ERROR: openssl lib not found: libcrypto.so文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum install openssl-devel

tar (child): lbzip2: Cannot exec: No such file or directory文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum -y install bzip2

configure: ERROR: C++ preprocessor "/lib/cpp" fails sanity check文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum install gcc-c++

configure: ERROR: Please reinstall the BZip2 distribution文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum install bzip2 bzip2-devel

configure: ERROR: cURL version 7.15.5 or later is required to compile php with cURL support文章源自爱尚资源教程网-https://www.23jcw.net/2285.html

yum install curl-devel

configure: ERROR: not found. Please provide a path to MagickWand-config or Wand-config program

yum install ImageMagick-devel

configure: ERROR: no acceptable C compiler found in $PATH

yum install gcc

configure: ERROR: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met:

yum install libicu-devel

configure: ERROR: Package requirements (sqlite3 > 3.7.4) were not met: No package 'sqlite3' found

yum install sqlite-devel

configure: ERROR: Package requirements (oniguruma) were not met: No package 'oniguruma' found

yum install oniguruma oniguruma-devel

执行命令

php-fpm

出现错误
ERROR: failed to open configuration file '/usr/local/soft/php7/etc/php-fpm.conf': No such file or directory (2)
ERROR: failed to load configuration file '/usr/local/soft/php7/etc/php-fpm.conf'
ERROR: FPM initialization failed

cd /usr/local/soft/php7/etc/
cp php-fpm.conf.default php-fpm.conf

执行命令

php-fpm

出现错误
WARNING: Nothing matches the include pattern '/usr/local/soft/php7/etc/php-fpm.d/*.conf' from /usr/local/soft/php7/etc/php-fpm.conf at line 143.
ERROR: No pool defined. at least one pool section must be specified in config file
ERROR: failed to post process the configuration
ERROR: FPM initialization failed

cd /usr/local/soft/php7/etc/php-fpm.d/
cp /www.conf.default www.conf

执行命令

php-fpm

出现错误
ERROR: [pool www] cannot get uid for user 'www'
ERROR: FPM initialization failed

groupadd www
useradd -g www www

sh: pod2html: command not found

yum -y install perl
相关文章
版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
  • 温馨提示:如遇到资源下载不了,或者文章没有解决你的问题的,可以联系我们帮你处理!!!
  • 转载请务必保留本文链接:https://www.23jcw.net/2285.html

发表评论