Oracle Cloud Oracle Cloud solves several problems of installing Junge LNMP environment on ARM server

Original link: https://www.ioiox.com/archives/161.html

question

The ARM server of Oracle Cloud Oracle Cloud will report an error when installing the environment of军哥LNMP.org . The main problems are php and mariadb . After the reply from the official forum, it has been solved, and it is perfectly installed on the ARM server.

√> This article is an original article by Stille . It has been practiced, tested, and published. If you need to reprint, please contact the author for authorization, and indicate the reprint address.


system environment

  • System Oracle Linux 7.9 ARM aarch64 架构
  • VersionLNMP LNMP 1.9 / PHP 7.4.30 / MariaDB 10.6.8

error factor

  1. The version of cmake is too low, you need to install cmake with yum first, and then upgrade cmake, you can use the soft link.
  2. Upgrade to gcc 8, pay attention to setting the current version, it will be restored after exiting the terminal, or it can be set permanently.
  3. Install oniguruma-devel.

solve

upgrade cmake

 # 安装cmake yum -y install epel-release yum -y update yum -y install cmake # 升级cmake cd /usr/local/ wget https://github.com/Kitware/CMake/releases/download/v3.24.0-rc3/cmake-3.24.0-rc3-linux-aarch64.tar.gz tar zxf cmake-3.24.0-rc3-linux-aarch64.tar.gz mv cmake-3.24.0-rc3-linux-aarch64 cmake mv /usr/bin/cmake /usr/bin/cmake.backup ln -sf /usr/local/cmake/bin/cmake /usr/bin/cmake # 查看版本cmake --version

upgrade gcc

 yum -y install centos-release-scl yum -y install devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-binutils scl enable devtoolset-8 bash # 以上命令仅当前终端使用8 版本,以下命令永久使用. echo "source /opt/rh/devtoolset-8/enable" >>/etc/profile

Install oniguruma-devel

 yum --enablerepo=*EPEL* install -y oniguruma-devel

Finish

After the above installation is completed, you can start to install lnmp 1.8/1.9 environment. So far, it has been running stably for more than half a month for reference.

This article is reprinted from: https://www.ioiox.com/archives/161.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.