Mac编译安装 oniguruma

作者:谢高升 发布:2022-05-15 浏览:3344次
wget https://github.com/kkos/oniguruma/archive/v6.9.5_rev1.tar.gz
tar xvzf v6.9.5_rev1.tar.gz
cd oniguruma-6.9.5_rev1
./autogen.sh

./configure --prefix=/usr/local/oniguruma
make && sudo make install


arch -x86_64 brew uninstall oniguruma
sudo cp /usr/local/oniguruma/lib/pkgconfig/* /usr/local/lib/pkgconfig/
sudo cp /usr/local/oniguruma/include/* /usr/local/include/
export LDFLAGS="-L/usr/local/oniguruma/lib"
export CPPFLAGS="-I/usr/local/oniguruma/include"
export PKG_CONFIG_PATH="/usr/local/oniguruma/lib/pkgconfig"
make clean

 ./configure --with-php-config=/Applications/MxSrvs/bin/php/bin/php-config
 
 make && make install


标签: 扩展