ARM架构下PHP编译安装报错的解决办法

查看 36|回复 0
作者:Syc   
以 Oracle Linux8 为例:
[ol]yum install -y cmake cmake3[/ol]复制代码
[ol]dnf install libjpeg-turbo-devel
dnf install libpng-devel
dnf install libjpeg-turbo-devel
dnf install oniguruma
dnf install freetype
dnf install freetype-devel
yum install -y libsodium-devel[/ol]复制代码
此时废塔等面板应该可以正常安装PHP了,已安装未正常运行需要卸载后重新安装。
还有其他报错可以尝试安装oniguruma:
[ol]wget https://vault.centos.org/centos/8/PowerTools/aarch64/os/Packages/oniguruma-devel-6.8.2-2.el8.aarch64.rpm
yum install oniguruma-devel-6.8.2-2.el8.aarch64.rpm
[/ol]复制代码
sodium.so扩展有问题请尝试:
[ol]
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \
  && yum install -y php-cli libsodium \
  && yum install -y php-pear php-devel libsodium-devel make \
  && pecl channel-update pecl.php.net \
  && pecl install libsodium \
  && yum remove -y php-pear php-devel libsodium-devel make \
  && echo 'extension=sodium.so' > /etc/php.d/20-sodium.ini \
  && php -i | grep sodium[/ol]复制代码

代码, 报错, 为例

您需要登录后才可以回帖 登录 | 立即注册

返回顶部