Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Dependencies

  1. Download and install the epel-release software package (only for CentOS).
    1. Download the epel-release RPM package.
      1
      2
      cd /home/
      wget https://dl.fedoraproject.org/pub/epel/7/aarch64/Packages/e/epel-release-7-12.noarch.rpm --no-check-certificate
      
    2. Install the epel-release RPM package.
      1
      rpm -ivh epel-release-7-12.noarch.rpm
      

    Extra Packages for Enterprise Linux (EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS, and Scientific Linux.

  2. Install Golang.
    1
    yum -y install golang*
    
    • On openEuler, if an error message is displayed stating "conflicting requests", run the following command:
      yum -y install golang* --skip-broken
    • On CentOS, if an error message is displayed stating "Cannot retrieve metalink for repository: epel/aarch64. Please verify its path and try again", perform the following operations to modify the /etc/yum.repos.d/epel.repo file and reinstall Golang:
      1. Open the /etc/yum.repos.d/epel.repo file.
        1
        vim /etc/yum.repos.d/epel.repo
        
      2. Press i to enter the insert mode and modify the following content:
        [epel]
        ...
        baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
        #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch&infra=$infra&content=$contentdir
        ....
      3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Configure Golang.
    1. Open the profile file.
      1
      vim /etc/profile
      
    2. Press i to enter the insert mode and add the following content to the file.
      • CentOS:
        export GOPATH=/root/go
        export GOROOT=/usr/lib/golang
        export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
      • openEuler:
        export GOPATH=/root/go
        export GOROOT=/usr/lib/golang
        export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Make the new environment variables take effect.
      1
      source /etc/profile
      
    5. View the version.
      1
      go version
      
  4. Download and install the dependencies.
    1
    yum install java-1.8.0-openjdk-* git gcc gcc-c++ make clang openssl openssl-devel -y
    
  5. Configure Java.
    1. View the Java installation directory.
      find /usr/lib/jvm/ -name java
      Alternatively,
      find / -name java
      Alternatively,
      which java
      • CentOS:
        ls /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.aarch64/bin/java
      • openEuler:
        ls /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-7.oe1.aarch64/bin/java
    2. Configure the environment variables: JAVA_HOME, JRE_HOME, CLASSPATH, and PATH.
      1. Open the profile file.
        vim /etc/profile
      2. Add the content of the corresponding system to the profile file.
        • CentOS:
          export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.aarch64
          export JRE_HOME=$JAVA_HOME/jre
          export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
          export PATH=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.aarch64/bin:$PATH
        • openEuler:
          export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-7.oe1.aarch64
          export JRE_HOME=$JAVA_HOME/jre
          export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
          export PATH=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-7.oe1.aarch64/bin:$PATH
      3. Press Esc, type :wq!, and press Enter to save the file and exit.
    3. Make the environment variables take effect.
      source /etc/profile
    4. View the environment variables.
      echo $JAVA_HOME
      echo $JRE_HOME
      echo $CLASSPATH
      echo $PATH
      • CentOS:

      • openEuler:

    5. View the Java version.
      java -version
      • CentOS:

      • openEuler:

  6. Download and install the libunwind libraries.
    1. Install libtool using Yum.
      1
      yum -y install libtool
      
    2. Download the libunwind installation package.
      1
      2
      cd /home/
      wget https://github.com/libunwind/libunwind/releases/download/v1.5/libunwind-1.5.0.tar.gz --no-check-certificate
      
    3. Decompress the source package.
      tar -xzf libunwind-1.5.0.tar.gz
    4. Go to the source code directory.
      cd libunwind-1.5.0
    5. Perform the compilation and installation.
      1
      ./configure && make -j60 && make install