服务器硬件:2物理CPU(28 核心56 线程)+64GB内存+硬盘2TB 系统:centos7.0 64位 AMH面板版本:amh 7.1 AMH面板安装php8.0报错,提示如下: checking if iconv is glibc's... yes checking if iconv supports errno... yes checking if iconv supports //IGNORE... yes checking for IMAP support... no checking for IMAP Kerberos support... no checking for IMAP SSL support... no checking whether to enable internationalization support... no checking for LDAP support... no checking whether to build with LDAP Cyrus SASL support... no 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: No package 'oniguruma' 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 rule to make target `install'. Stop. mkdir: cannot create directory '/usr/local/php-8.0/var/run/pid': No such file or directory mv: cannot move '/usr/ext_8.0' to '/usr/local/php-8.0/extcode': No such file or directory [Notice] php-8.0 is not installed. 借鉴了这个问题中的答案, wget code.amh.sh/files/oniguruma-6.8.2-1.el7.x86_64.rpm wget code.amh.sh/files/oniguruma-devel-6.8.2-1.el7.x86_64.rpm yum -y install ./oniguruma-6.8.2-1.el7.x86_64.rpm ./oniguruma-devel-6.8.2-1.el7.x86_64.rpm 问题依旧存在。 执行命令返回信息如下: yum -y install ./oniguruma-6.8.2-1.el7.x86_64.rpm ./oniguruma-devel-6.8.2-1.el7.x86_64.rpm Loaded plugins: fastestmirror, langpacks Examining ./oniguruma-6.8.2-1.el7.x86_64.rpm: oniguruma-6.8.2-1.el7.x86_64 ./oniguruma-6.8.2-1.el7.x86_64.rpm: does not update installed package. Examining ./oniguruma-devel-6.8.2-1.el7.x86_64.rpm: oniguruma-devel-6.8.2-1.el7.x86_64 Marking ./oniguruma-devel-6.8.2-1.el7.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package oniguruma-devel.x86_64 0:6.8.2-1.el7 will be installed --> Processing Dependency: oniguruma = 6.8.2-1.el7 for package: oniguruma-devel-6.8.2-1.el7.x86_64 Loading mirror speeds from cached hostfile * base: mirrors.oit.uci.edu * centos-sclo-rh: mirrors.raystedman.org * epel: mirror.tornadovps.com * extras: mirror.keystealth.org * updates: nocix.mm.fcix.net --> Finished Dependency Resolution Error: Package: oniguruma-devel-6.8.2-1.el7.x86_64 (/oniguruma-devel-6.8.2-1.el7.x86_64) Requires: oniguruma = 6.8.2-1.el7 Installed: oniguruma-6.8.2-2.el7.x86_64 (@epel) oniguruma = 6.8.2-2.el7 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest