VPS侦探论坛

 找回密码
 注册
查看: 56|回复: 1

centos7.9系统lnmp环境安装多版本PHP8.2,安装失败!

[复制链接]
发表于 2024-10-13 11:11:57 | 显示全部楼层 |阅读模式

安装日志如下:



Configuring extensions
checking for io.h... no
checking for strtoll... yes
checking for atoll... yes
checking whether to build with LIBXML support... yes
checking for libxml-2.0 >= 2.9.0... yes
checking for OpenSSL support... yes
checking for Kerberos support... no
checking whether to use system default cipher list instead of hardcoded value... no
checking for openssl >= 1.0.2... yes
checking for RAND_egd... yes
checking for PCRE library to use... bundled
checking whether to enable PCRE JIT functionality... yes
checking whether Intel CET is enabled... no
checking whether to enable the SQLite3 extension... yes
checking for sqlite3 >= 3.7.7... yes
checking for sqlite3_errstr in -lsqlite3... yes
checking for sqlite3_expanded_sql in -lsqlite3... no
checking for sqlite3_load_extension in -lsqlite3... yes
checking for ZLIB support... yes
checking for zlib >= 1.2.0.4... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking for libcurl >= 7.29.0... yes
checking for SSL support in libcurl... yes
checking for libcurl linked against old openssl... no
checking for curl_easy_perform in -lcurl... yes
checking for QDBM support... no
checking for GDBM support... no
checking for NDBM support... no
checking for TCADB support... no
checking for LMDB support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DB1 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dl-test extension... no
checking whether to enable DOM support... yes
checking for libxml-2.0 >= 2.9.0... yes
checking whether to build with Enchant support... no
checking whether to enable EXIF (metadata from images) support... no
checking for FFI support... no
checking for fileinfo support... yes
checking for strcasestr... yes
checking for utimes... yes
checking for strndup... yes
checking whether to enable input filter support... yes
checking whether to enable FTP support... yes
checking whether to explicitly enable FTP SSL support... no
checking for openssl >= 1.0.2... yes
checking for GD support... yes
checking for external libgd... no
checking for libavif... no
checking for libwebp... yes
checking for libjpeg... yes
checking for libXpm... no
checking for FreeType 2... /usr/local/freetype
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
checking for zlib... yes
checking for libpng... yes
checking for libwebp >= 0.2.0... yes
checking for libjpeg... yes
checking for freetype2... yes
checking for GNU gettext support... yes
checking for bindtextdomain in -lintl... no
checking for bindtextdomain in -lc... yes
checking for ngettext in -lc... yes
checking for dngettext in -lc... yes
checking for dcngettext in -lc... yes
checking for bind_textdomain_codeset in -lc... yes
checking for GNU MP support... no
checking for mhash support... yes
checking size of long... (cached) 8
checking if we're at 64-bit platform... yes
checking for iconv support... yes
checking for libiconv in -liconv... yes
checking if iconv is glibc's... yes
checking if iconv supports errno... yes
checking if iconv supports //IGNORE... yes
checking for IMAP support... no
checking for IMAP Kerberos support... no
checking for IMAP SSL support... no
checking whether to enable internationalization support... yes
checking for icu-uc >= 50.1 icu-io icu-i18n... yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... -std=gnu++11
checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking if intl requires -std=gnu++17... yes
checking whether g++ -std=gnu++11 supports C++17 features with -std=c++17... no
checking whether g++ -std=gnu++11 supports C++17 features with +std=c++17... no
checking whether g++ -std=gnu++11 supports C++17 features with -h std=c++17... no
checking whether g++ -std=gnu++11 supports C++17 features with -std=c++1z... no
checking whether g++ -std=gnu++11 supports C++17 features with +std=c++1z... no
checking whether g++ -std=gnu++11 supports C++17 features with -h std=c++1z... no
configure: error: *** A compiler with support for C++17 language features is required.
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有规则可以创建目标“install”。 停止。
Copy new php configure file...
Modify php.ini......
Install ZendGuardLoader for PHP 8.2...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: 无法获取"/root/lnmp2.1/src/php-8.2.19/sapi/fpm/init.d.php-fpm" 的文件状态(stat): 没有那个文件或目录
chmod: 无法访问"/etc/init.d/php-fpm8.2": 没有那个文件或目录
sed:无法读取 /etc/init.d/php-fpm8.2:没有那个文件或目录
Add php-fpm8.2 service at system startup...
服务 php-fpm8.2 信息读取出错:没有那个文件或目录
服务 php-fpm8.2 信息读取出错:没有那个文件或目录
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Starting LNMP...
Starting nginx...  done
Starting MySQL.. SUCCESS!
Starting php-fpm  done
Failed to install php-8.2.19, you can download /root/install-mphp8.2.log from your server, and upload install-mphp8.2.log to LNMP Forum.


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2024-10-13 11:15:25 | 显示全部楼层


服务器原有PHP7.4版本,有项目正在在跑,不能停,不能破坏原有PHP运行环境。自己不敢瞎倒腾,大哥们帮帮忙?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-10-26 03:24 , Processed in 0.024962 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表