VPS侦探论坛

 找回密码
 注册
查看: 1160|回复: 2

Debian9 单独安装php 7.4失败

[复制链接]
发表于 2023-9-27 13:45:53 | 显示全部楼层 |阅读模式

使用lnmp2.0 单独安装PHP,用论坛上提供的方法
  1. ./upgrade.sh php
复制代码

选择 7.4.33报错

  1. No package 'libcurl' found

  2. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  3. installed software in a non-standard prefix.

  4. Alternatively, you may set the environment variables CURL_CFLAGS
  5. and CURL_LIBS to avoid the need to call pkg-config.
  6. See the pkg-config man page for more details.
  7. make: *** No targets specified and no makefile found.  Stop.
  8. make: *** No targets specified and no makefile found.  Stop.
  9. make: *** No rule to make target 'install'.  Stop.
  10. Copy new php configure file...
  11. Modify php.ini......
  12. include/php.sh: line 205: pear: command not found
  13. include/php.sh: line 206: pecl: command not found
  14. Downloading Composer...
  15. --2023-09-27 01:38:38--  https://mirrors.aliyun.com/composer/composer.phar
  16. Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 47.246.23.241, 47.246.23.238, 47.246.23.237, ...
  17. Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|47.246.23.241|:443... connected.
  18. HTTP request sent, awaiting response... 200 OK
  19. Length: 2859496 (2.7M) [application/octet-stream]
  20. Saving to: ‘/usr/local/bin/composer’

  21.      0K ..                                 100% 31.6M=0.09s

  22. 2023-09-27 01:38:38 (31.6 MB/s) - ‘/usr/local/bin/composer’ saved [2859496/2859496]

  23. Composer install successfully.
  24. Install ZendGuardLoader for PHP 7...
  25. unavailable now.
  26. Creating new php-fpm configure file...
  27. Copy php-fpm init.d file...
  28. cp: cannot stat '/root/lnmp2.0/src/php-7.4.33/sapi/fpm/init.d.php-fpm': No such file or directory
  29. chmod: cannot access '/etc/init.d/php-fpm': No such file or directory
  30. include/upgrade_php.sh: line 884: lnmp: command not found
  31. ======== upgrade php failed ======
  32. upgrade php log: /root/upgrade_lnmp_php20230927013721.log
复制代码
日志文件 https://t.wss.ink/f/ca8p4iwgmy0 复制链接到浏览器打开
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-9-30 09:41:06 | 显示全部楼层


缺少依赖包
apt-get install libcurl4-openssl-dev
安装一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-10-8 09:46:35 | 显示全部楼层

licess 发表于 2023-9-30 09:41
缺少依赖包
apt-get install libcurl4-openssl-dev
安装一下

安装之后又提示
  1. No package 'freetype2' found
复制代码
,执行
  1. apt install libfreetype6-dev
复制代码
才好的
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-5 01:52 , Processed in 0.026303 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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