在Centos8環(huán)境中編譯安裝PHP出現(xiàn)如上報錯:
原因是沒有安裝配置oniguruma導致的
解決方法如下:
1、獲取源碼,
- wget https://github.com/kkos/oniguruma/archive/v6.9.4.tar.gz -O oniguruma-6.9.4.tar.gz
- 備用地址:https://yudch.cn/wp-content/uploads/2021/02/oniguruma-6.9.4.tar.gz
2.并解壓
- tar -zxf oniguruma-6.9.4.tar.gz
進入目錄
- cd oniguruma-6.9.4
3、編譯安裝
- ./autogen.sh && ./configure --prefix=/usr
- make && make install
如果是Centos7環(huán)境中的話:
解決方法如下:
- yum -y install http://mirror.centos.org/centos-7/7.7.1908/cloud/x86_64/openstack-queens/oniguruma-6.7.0-1.el7.x86_64.rpm
- yum -y install http://mirror.centos.org/centos-7/7.7.1908/cloud/x86_64/openstack-queens/oniguruma-devel-6.7.0-1.el7.x86_64.rpm
備用下載地址:
- oniguruma:https://yudch.cn/wp-content/uploads/2021/02/oniguruma-6.7.0-1.el7_.x86_64.zip
- oniguruma-devel:https://yudch.cn/wp-content/uploads/2021/02/oniguruma-devel-6.7.0-1.el7_.x86_64.zip
更多相關文章
centos8 安裝php7.3.27 解決報錯 /usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or dire…
CentOS8 系統(tǒng)yum安裝出現(xiàn)“未找到匹配的參數(shù)”、“沒有可用軟件包”錯誤
版權聲明:文章圖片資源來源于網(wǎng)絡,如有侵權,請留言刪除!!!
評論