kekeones 发表于 2020-4-13 15:50:44

centos8 lnmp1.7 php7.4 安装失败

checking whether to enable multibyte string support... yes
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.
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......

kekeones 发表于 2020-4-13 16:31:31

//腾讯云 centos8

# yum -y install oniguruma-devel
Last metadata expiration check: 0:09:28 ago on Mon 13 Apr 2020 04:18:52 PM CST.
No match for argument: oniguruma-devel


# dnf --enablerepo=PowerTools install rpcgen -y
Error: Unknown repo: 'PowerTools'
# dnf --enablerepo=PowerTools install oniguruma-devel -y
Error: Unknown repo: 'PowerTools'

licess 发表于 2020-4-13 17:36:36

之前安装依赖包肯定报错了,按要求上传完整日志看一下

kekeones 发表于 2020-4-13 17:59:25

Last metadata expiration check: 0:00:41 ago on Mon 13 Apr 2020 04:18:52 PM CST.
No match for argument: oniguruma-devel
Error: Unable to find a match
Last metadata expiration check: 0:00:44 ago on Mon 13 Apr 2020 04:18:52 PM CST.
Package nss available, but not installed.
No match for argument: nss
Error: No packages marked for upgrade.
Error: Unknown repo: 'PowerTools'
Error: Unknown repo: 'PowerTools'
 Downloading files...
Notice: libiconv-1.15.tar.gz not found!!!download now...

kekeones 发表于 2020-4-13 18:01:12

kekeones 发表于 2020-4-13 17:59


# cat /proc/version
Linux version 4.18.0-80.el8.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Tue Jun 4 09:19:46 UTC 2019
# uname -a
Linux VM_0_16_centos 4.18.0-80.el8.x86_64 #1 SMP Tue Jun 4 09:19:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
CentOS Linux release 8.0.1905 (Core)
#

licess 发表于 2020-4-13 20:07:10

kekeones 发表于 2020-4-13 17:59


可能你的vps服务商精简掉了PowerTool源,你 cat /etc/yum.repos.d/CentOS-PowerTools.repo 看一下,是否存在,不存在的话
可以自己创建 /etc/yum.repos.d/CentOS-PowerTools.repo文件,添加如下内容:
# CentOS-PowerTools.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#


name=CentOS-$releasever - PowerTools
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
然后 dnf --enablerepo=PowerTools install oniguruma-devel -y 试一下

kekeones 发表于 2020-4-13 20:48:02

licess 发表于 2020-4-13 20:07
可能你的vps服务商精简掉了PowerTool源,你 cat /etc/yum.repos.d/CentOS-PowerTools.repo 看一下,是否 ...

确实是没这个文件。
页: [1]
查看完整版本: centos8 lnmp1.7 php7.4 安装失败