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

ERROR: the HTTP XSLT module requires the libxml2/libxslt

yum -y install libxml2 libxml2-dev
yum -y install libxslt-devel
1
2
ERROR: the HTTP image filter module requires the GD library.

yum -y install gd-devel
1
ERROR: the GeoIP module requires the GeoIP library.

yum -y install GeoIP GeoIP-devel GeoIP-data
1
ERROR: the Google perftools module requires the Google perftools

yum -y install gperftools
1
ERROR: libatomic_ops library was not found.

yum -y install libuuid-devel libblkid-devel libudev-devel fuse-devel libedit-devel libatomic_ops-devel
1
ERROR trying to exec 'cc1plus': execvp: No such file or directory

yum -y install gcc-c++
1
ERROR: [pool www] cannot get uid for user 'www-data'

groupadd www-data
useradd -g www-data www-data
1
2
configure: ERROR: mbed TLS libraries not found.
需要安装mbedtls,教程:https://www.24kplus.com/linux/281.html

ERROR: Cannot find OpenSSL's <evp.h>

yum install openssl openssl-devel
ln -s /usr/lib64/libssl.so /usr/lib/
1
2
ERROR: Libtool library used but 'LIBTOOL' is undefined

yum install libtool
1
exec: g++: not found

yum -y update gcc
yum -y install gcc+ gcc-c++
1
2
configure: ERROR: tss lib not found: libtspi.so

yum install trousers-devel
1
Can't exec "autopoint": No such file or directory

yum install gettext gettext-devel gettext-common-devel
1
configure: ERROR: libcrypto not found.

yum remove openssl-devel
yum -y install openssl-devel
1
2
configure: ERROR: Package requirements (libffi >= 3.0.0) were not met: No package 'libffi' found

yum install libffi-devel
1
fatal ERROR: uuid.h: No such file or directory

yum install e2fsprogs-devel uuid-devel libuuid-devel
1
configure: ERROR: openssl lib not found: libcrypto.so

yum install openssl-devel
1
tar (child): lbzip2: Cannot exec: No such file or directory

yum -y install bzip2
1
configure: ERROR: C++ preprocessor "/lib/cpp" fails sanity check

yum install gcc-c++
1
configure: ERROR: Please reinstall the BZip2 distribution

yum install bzip2 bzip2-devel
1
configure: ERROR: cURL version 7.15.5 or later is required to compile php with cURL support

yum install curl-devel
1
configure: ERROR: not found. Please provide a path to MagickWand-config or Wand-config program

yum install ImageMagick-devel
1
configure: ERROR: no acceptable C compiler found in $PATH

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

yum install libicu-devel
1
configure: ERROR: Package requirements (sqlite3 > 3.7.4) were not met: No package 'sqlite3' found

yum install sqlite-devel
1
configure: ERROR: Package requirements (oniguruma) were not met: No package 'oniguruma' found

yum install oniguruma oniguruma-devel
1
执行命令

php-fpm
1
出现错误
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
1
2
执行命令

php-fpm
1
出现错误
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
1
2
执行命令

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

groupadd www
useradd -g www www
1
2
sh: pod2html: command not found

yum -y install perl
————————————————
版权声明:本文为CSDN博主「斜杠打卡小程序」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_32828933/article/details/103756240

 

yum安装必要工具(能解决比编译遇到到基本问题):

  1. yum -y install gcc gcc-c++  make cmake automake autoconf kernel-devel ncurses-devel libxml2-devel openssl-devel curl-devel libjpeg-devel libpng-devel  pcre-devel libtool-libs freetype-devel gd zlib-devel file bison patch mlocate flex diffutils   readline-devel glibc-devel glib2-devel bzip2-devel gettext-devel libcap-devel libmcrypt-devel openldap openldap-devellibxslt-devel


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

  1. yum install libxml2-devel

configure: error: Cannot find OpenSSL’s

  1. yum install openssl-devel

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

  1. yum install curl-devel

configure: error: libjpeg.(a|so) not found

  1. yum install libjpeg-devel

configure: error: libpng.(a|so) not found.

  1. yum install libpng-devel

configure: error: libXpm.(a|so) not found.

  1. yum install libXpm-devel

configure: error: freetype.h not found.

  1. yum install freetype-devel

 

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
  1. yum install libc-client-devel

 

configure: error: mcrypt.h not found. Please reinstall libmcrypt.
  1. yum install libmcrypt-devel

 

configure: error: Please reinstall libmhash – I cannot find mhash.h
  1. yum install mhash-devel

 

configure: error: Cannot find MySQL header files under /usr.Note that the MySQL client library is not bundled anymore!
  1. yum install mysql-devel

 

configure: error: Please reinstall ming distribution. libming.(a|so) not found- temp remove the config for ‘–with-ming=/opt/ming/’configure: error: Cannot find pspell
  1. yum install pspell-devel

 

configure: error: cannot find mm libraryDownload from http://www.ossp.org/pkg/lib/mm/

  1. wget ftp://ftp.ossp.org/pkg/lib/mm/mm-1.4.2.tar.gz
  2. tar -zxvf mm-1.4.2.tar.gz
  3. ./configure
  4. make
  5. make install


configure: error: Cannot find libtidy


  1. yum install libtidy-devel
  2. yum install libtidy


change path at configure: ‘–with-tidy=/usr’configure: error: not found. Please reinstall the expat distribution.

  1. yum install expat-devel

 

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

  1. yum install libxslt-devel

*Tips: To uninstall, just enter:yum remove {package-name}

posted @ 2023-03-02 16:01  全琪俊  阅读(527)  评论(0编辑  收藏  举报