Rate This Document
Findability
Accuracy
Completeness
Readability

Preparing the Environment

  1. Reset the resources occupied by the shell startup process.
    1
    vi /etc/profile
    
    Add the following content:
    ulimit -n 524288
    Run the source command to make the setting take effect.
    source /etc/profile
  2. Install the dependencies.
    1
    yum install gtk-doc pam-devel rpmdevtools xmlsec1-devel libtool-ltdl-devel createrepo openldap-devel rdma-core-devel lz4-devel expat-devel lttng-ust-devel libbabeltrace-devel python3-Cython python2-Cython gperftools-devel bc dnf-plugins-core librabbitmq-devel leveldb leveldb-devel numactl numactl-devel rpmdevtools rpm-build libtool python-pip python3-pip librbd-devel git net-tools expect haveged dos2unix -y
    
  3. Create a temporary directory for the RPM packages.
    1
    mkdir -p /home/rpm
    
  4. Copy the RPM packages in the /home/rpmbuild/RPMS/ directory of the compilation server to the /home/rpm directory of the client node, go to the directory, and configure the local Yum source.
    1
    2
    cd /home/rpm
    createrepo .
    
  5. Configure the Repo file.
    1
    vi /etc/yum.repos.d/local.repo
    

    Add the following content:

    1
    2
    3
    4
    5
    6
    [local]
    name=local
    baseurl=file:///home/rpm
    enabled=1
    gpgcheck=0
    priority=1
    
  6. Configure the local liboath source.
    1. Create a directory used as the Yum source.
      mkdir -p /home/oath
    2. Copy all files in the /root/rpmbuild/RPMS/ directory of the compilation server to /home/oath/.
    3. Use the copied RPM package as the local Yum source.
      1
      2
      cd  /home/oath
      createrepo .
      
  7. Configure the Repo file.
    1
    vi /etc/yum.repos.d/local.repo
    
    Add the following content to the file:
    1
    2
    3
    4
    5
    6
    [local-oath]
    name=local-oath
    baseurl=file:///home/oath
    enabled=1
    gpgcheck=0
    priority=1
    
  8. Install liboath.
    1
    yum install liboath liboath-devel
    
  9. Install Java.
    1. Decompress OpenJDK8U-jdk_aarch64_linux_hotspot_jdk8u282-b08.tar.gz (ARM) or OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz (x86) to the /usr/local directory.

      In the ARM environment:

      cd /home
      tar -zxvf OpenJDK8U-jdk_aarch64_linux_hotspot_jdk8u282-b08.tar.gz -C /usr/local/

      In the x86 environment:

      cd /home
      tar -zxvf OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz -C /usr/local/
    2. Configure Java environment variables.
      1. Modify the environment variables.
        1
        vi /etc/profile
        
        Add the following content to the end of the file:
        1
        2
        export JAVA_HOME=/usr/local/jdk8u282-b08
        export PATH=${JAVA_HOME}/bin:$PATH
        
      2. Make the environment variables take effect.
        1
        source /etc/profile
        
      3. Check whether the installation is successful.
        1
        java -version