前言
原先安装过一个版本,通过脚本卸载之后,再安装的时候报错了,就去GitHub的仓库看了下,刚好找到一个issue,不过oniguruma-devel
无法直接安装;
issue:https://github.com/oneinstack/oneinstack/issues/353
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 rule to make target 'install'. Stop. PHP install failed, Please Contact the author! Killed
内容
按着issue使用yum安装的时候,提示
oniguruma
已经安装,oniguruma-devel
找不到;于是根据
oniguruma
的版本信息和自己操作系统版本信息,找了下对应的oniguruma-devel
进行安装;
yum install -y https://centos.pkgs.org/9-stream/centos-crb-x86_64/oniguruma-devel-6.9.6-1.el9.5.x86_64.rpm.html // 安装完成之后再使用脚本安装就OK ./oneinstack/install.sh --php_option 12 --phpcache_option 1 --php_extensions gmagick,fileinfo,redis --reboot
学无止境,谦卑而行.