Debian9 单独安装php 7.4失败
使用lnmp2.0 单独安装PHP,用论坛上提供的方法 ./upgrade.sh php选择 7.4.33报错
No package 'libcurl' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables CURL_CFLAGS
and CURL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target 'install'.Stop.
Copy new php configure file...
Modify php.ini......
include/php.sh: line 205: pear: command not found
include/php.sh: line 206: pecl: command not found
Downloading Composer...
--2023-09-27 01:38:38--https://mirrors.aliyun.com/composer/composer.phar
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 47.246.23.241, 47.246.23.238, 47.246.23.237, ...
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|47.246.23.241|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2859496 (2.7M)
Saving to: ‘/usr/local/bin/composer’
0K .. 100% 31.6M=0.09s
2023-09-27 01:38:38 (31.6 MB/s) - ‘/usr/local/bin/composer’ saved
Composer install successfully.
Install ZendGuardLoader for PHP 7...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat '/root/lnmp2.0/src/php-7.4.33/sapi/fpm/init.d.php-fpm': No such file or directory
chmod: cannot access '/etc/init.d/php-fpm': No such file or directory
include/upgrade_php.sh: line 884: lnmp: command not found
======== upgrade php failed ======
upgrade php log: /root/upgrade_lnmp_php20230927013721.log日志文件 https://t.wss.ink/f/ca8p4iwgmy0 复制链接到浏览器打开
缺少依赖包
apt-get install libcurl4-openssl-dev
安装一下 licess 发表于 2023-9-30 09:41
缺少依赖包
apt-get install libcurl4-openssl-dev
安装一下
安装之后又提示No package 'freetype2' found,执行apt install libfreetype6-dev才好的
页:
[1]