leedow 发表于 2023-5-30 15:26:57

麒麟系统离线安装php失败,lnmp1.9

NAME="Kylin Linux Advanced Server"VERSION="V10 (Sword)"ID="kylin"VERSION_ID="V10"PRETTY_NAME="Kylin Linux Advanced Server V10 (Sword)"ANSI_COLOR="0;31"

Nginx: OKDo not install MySQL/MariaDB.Error: PHP install failed.Sorry, Failed to install LNMP!Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

leedow 发表于 2023-5-30 15:30:46

本帖最后由 leedow 于 2023-5-30 15:39 编辑

日志传错了,稍后上传

leedow 发表于 2023-5-30 15:44:45

日志文件:https://t.wss.ink/f/bc0dbkufzy7 复制链接到浏览器打开

licess 发表于 2023-5-30 20:22:10

 Yum installing dependent packages...
kylin-v10-sp2                                 0.0B/s |   0B   00:00   
Errors during downloading metadata for repository 'kylin-v10-sp2':
- Curl error (7): Couldn't connect to server for http://21.253.167.153/ks10.2-adv-os-aarch64/repodata/repomd.xml
Error: Failed to download metadata for repo 'kylin-v10-sp2': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
你系统上都没可以正常工作的源,肯定是无法安装成功的

另外你这系统做过修改或者你直接用centos的源安装过软件包或直接用过centos的安装包?

leedow 发表于 2023-5-31 09:45:46

licess 发表于 2023-5-30 20:22
你系统上都没可以正常工作的源,肯定是无法安装成功的

另外你这系统做过修改或者你直接用centos的源安装 ...

没有用centos的源安装过啥。有点奇怪你发的日志是我发错的日志,我后来重新发的日志里源是正常的,我现在下载日志里也没有搜到这段信息。我重新提交下试试, 这个是最新的日志文件,麻烦大佬再帮忙看下https://t.wss.ink/f/bc82xuv13vn 复制链接到浏览器打开,我自己搜了下有很多Error: Unable to find a match:XXXX   类似的信息,是这个原因吗?

licess 发表于 2023-6-1 08:29:22

leedow 发表于 2023-5-31 09:45
没有用centos的源安装过啥。有点奇怪你发的日志是我发错的日志,我后来重新发的日志里源是正常的,我现在 ...

CentOS V10

Authorized users only. All activities may be monitored and reported.
CentOS Linux release 7.6.1811 (Core)
你这个获取到的是CentOS
有可能你系统上的 /etc/issue 文件被修改成了centos或者 rpm -qa|grep centos-linux-release 看一下

下载lnmp2.0,使用lnmp2.0进行安装

leedow 发表于 2023-6-1 11:00:00

licess 发表于 2023-6-1 08:29
CentOS V10

Authorized users only. All activities may be monitored and reported.


使用2.0 unable to find a math的错误没有了,但PHP还是安装失败,完整日志 https://t.wss.ink/f/bcivso7gh4v 复制链接到浏览器打开   ,麻烦再辛苦帮忙看下,感谢,我找了下好像就这部分有错误 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
Install ZendGuardLoader for PHP 7.4...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat '/home/lnmp2.0-full/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

licess 发表于 2023-6-1 13:38:23

leedow 发表于 2023-6-1 11:00
使用2.0 unable to find a math的错误没有了,但PHP还是安装失败,完整日志 https://t.wss.ink/f/bcivso7 ...

No match for argument: oniguruma-devel
Error: Unable to find a match: oniguruma-devel

。。。。。
checking whether to enable multibyte regex support (requires oniguruma)... yes
checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met:

Package 'oniguruma', required by 'virtual:world', not 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 ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
你这个 Kylin Linux Advanced Server release V10 (Sword) 光盘源里面没有所需的oniguruma-devel依赖包
这个系统版本可能是V10SP2,官网源里面 https://update.cs2c.com.cn/NS/V10/V10SP2/os/adv/lic/base/x86_64/Packages/ 是有的可以自己下载然后安装或 https://github.com/kkos/oniguruma/releases 下载源码编译安装

d981262777 发表于 2023-11-23 15:52:05

哥们你后面问题解决了吗?我这边也跟你一样,麻烦给个解决方案啊,谢谢
页: [1]
查看完整版本: 麒麟系统离线安装php失败,lnmp1.9