📜  或者,您可以设置环境变量 ONIG_CFLAGS 和 ONIG_LIBS 以避免调用 pkg-config. - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:48.556000             🧑  作者: Mango

代码示例1
# Mac OS
brew install oniguruma
# Ubuntu/Debian
sudo apt-get install libonig-dev
# RHEL/CentOS <= 7
sudo yum install oniguruma-devel
# RHEL/CentOS 8
sudo yum install ./oniguruma-6.8.2-0.1.el8.remi.x86_64.rpm
sudo yum install ./oniguruma-devel-6.8.2-0.1.el8.remi.x86_64.rpm