VPS侦探论坛

标题: php7.4在Rocky10安装失败 [打印本页]

作者: ritaswc    时间: 2026-1-6 15:28
标题: php7.4在Rocky10安装失败

安装目标  php7.4  mysql8.0
lnmp2.1

lnmp2.2都失败。
系统是 Rocky Linux release 10.1 (Red Quartz)

lnmp2.1 php失败区域
  1. checking for floorf... yes
  2. checking for zlib... yes
  3. checking for libpng... yes
  4. checking for libwebp... yes
  5. checking for libjpeg... yes
  6. checking for freetype2... yes
  7. configure: error: GD build test failed. Please check the config.log for details.
  8. make: *** No targets specified and no makefile found.  Stop.
  9. make: *** No targets specified and no makefile found.  Stop.
  10. make: *** No rule to make target 'install'.  Stop.
  11. Copy new php configure file...
  12. Modify php.ini......
  13. include/php.sh: line 205: pear: command not found
  14. include/php.sh: line 206: pecl: command not found
  15. Downloading Composer...
  16. --2026-01-06 15:05:25--  https://soft.lnmp.com/web/php/composer/composer-2.2.phar
  17. Resolving soft.lnmp.com (soft.lnmp.com)... 61.170.88.242, 61.170.88.203, 182.106.149.181
  18. Connecting to soft.lnmp.com (soft.lnmp.com)|61.170.88.242|:443... connected.
  19. HTTP request sent, awaiting response... 200 OK
  20. Length: 2384623 (2.3M) [application/octet-stream]
  21. Saving to: ‘/usr/local/bin/composer’

  22.      0K .                                   79% 8.39K=3m40s

  23. 2026-01-06 15:09:17 (8.39 KB/s) - Read error at byte 1891907/2384623 (Error in the pull function.). Retrying.

  24. --2026-01-06 15:09:18--  (try: 2)  https://soft.lnmp.com/web/php/composer/composer-2.2.phar
  25. Connecting to soft.lnmp.com (soft.lnmp.com)|61.170.88.242|:443... connected.
  26. HTTP request sent, awaiting response... 206 Partial Content
  27. Length: 2384623 (2.3M), 492716 (481K) remaining [application/octet-stream]
  28. Saving to: ‘/usr/local/bin/composer’

  29.      0K ,.                                 100% 8.15K=59s

  30. 2026-01-06 15:10:18 (8.15 KB/s) - ‘/usr/local/bin/composer’ saved [2384623/2384623]

  31. Composer install successfully.
  32. Install ZendGuardLoader for PHP 7.4...
  33. unavailable now.
  34. Creating new php-fpm configure file...
  35. Copy php-fpm init.d file...
  36. cp: cannot stat '/root/download/lnmp2.1-full/src/php-7.4.33/sapi/fpm/init.d.php-fpm': No such file or directory
  37. chmod: cannot access '/etc/init.d/php-fpm': No such file or directory
  38. Clean PHP src directory...
  39. ^[[0;34m[+] Installing nginx-1.26.0... ^[[0m
  40. groupadd: group 'www' already exists
  41. useradd: user 'www' already exists
复制代码
上传不了附件。就用 链接替代了  http://nas.ddns.yinghualuo.cn:88/data/lnmp-log.7z



作者: iquan    时间: 2026-2-28 09:23
可以参考我的博客 https://deyun.fun/archives/278/
作者: iquan    时间: 2026-3-2 20:51
参考我的 Rockylinux9-10安装nginx+php+mariadb保姆级教程 ,新版的php在安装方式上已经有改变了,但军哥的脚本没有更新




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4