PHP8编译错误

https://www.likecs.com/show-135100.html
(1) configure: error: Please reinstall the BZip2 distribution

yum install bzip2 bzip2-devel复制
(2) configure: error: Package requirements (libcurl >= 7.15.5) were not met:No package 'libcurl' found

yum install libcurl libcurl-devel -y复制
(3)configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

yum install libxslt libxslt-devel -y复制
(4)configure: error: Package requirements (sqlite3 > 3.7.4) were not met:

yum install sqlite-devel -y复制
(5)configure: error: GNU MP Library version 4.2 or greater required.

yum install gmp-devel -y 复制
(6)configure: error: Package requirements (oniguruma) were not met: No package 'oniguruma' found

yum install oniguruma-devel -y复制
(7)configure: error: Please reinstall readline - I cannot find readline.h

yum install readline-devel -y复制
(8)configure: error: Package requirements (libpcre2-8 >= 10.30) were not met: No package 'libpcre2-8' found

wget https://ftp.pcre.org/pub/pcre/pcre2-10.34.tar.bz2

tar xjvf pcre2-10.34.tar.bz2

cd pcre2-10.34

./configure --prefix=/usr/local/pcre2 --enable-pcre2-16 --enable-pcre2-32 --enable-jit --enable-jit-sealloc

make && make install

export PKG_CONFIG_PATH=/usr/local/pcre2/lib/pkgconfig/

cd ..复制
(9)configure: error: DBA: Could not find necessary header file(s).

yum install gdbm-devel -y复制
(10)configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:No package 'libzip' found

yum remove libzip libzip-devel

wget https://hqidi.com/big/libzip-1.2.0.tar.gz

tar -zxvf libzip-1.2.0.tar.gz

cd libzip-1.2.0

./configure

make && make install

cd ..复制
(11)configure: error: Package requirements (libxml-2.0 >= 2.7.6) were not met: No package 'libxml-2.0' found

yum install libxml2-devel -y复制
(12)configure: error: Package requirements (libpng) were not met: No package 'libpng' found

yum install libpng-devel -y复制
(13)configure: error: Package requirements (libjpeg) were not met:No package 'libjpeg' found

yum install libjpeg-devel -y复制
(14)configure: error: Package requirements (freetype2) were not met:No package 'freetype2' found

yum install freetype-devel -y复制
(15)configure: error: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met:

No package 'icu-uc' found

No package 'icu-io' found

No package 'icu-i18n' found

yum install libicu-devel -y复制

转载请注明出处:

转载自http://lxfamn.cn/blog

未经允许不得转载:lxfamn » PHP8编译错误

赞 (0) 打赏

置顶推荐

评论 0

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏