Rate This Document
Findability
Accuracy
Completeness
Readability

Performing Compilation and Installation

Installing APR

  1. Download the apr-1.5.2 source code.
    1
    wget https://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
    
  2. Decompress apr-1.5.2.tar.gz.
    1
    tar -xvzf apr-1.5.2.tar.gz
    
  3. Go to the apr-1.5.2 directory.
    1
    cd apr-1.5.2
    
  4. Install APR to the /usr/local/apr directory.
    1
    2
    ./configure --prefix=/usr/local/apr
    make && make install
    

Compiling netty-tcnative-boringssl-static-1.1.33.Fork23.jar

  1. Download and decompress the netty-tcnative-parent-1.1.33.Fork23 source code.
    1
    2
    wget https://github.com/netty/netty-tcnative/archive/netty-tcnative-parent-1.1.33.Fork23.tar.gz
    tar -zxvf netty-tcnative-parent-1.1.33.Fork23.tar.gz
    
  2. Modify the apr-1.5.2.tar.gz download link in the pom.xml file to avoid access timeout.
    1
    2
    cd netty-tcnative-netty-tcnative-parent-1.1.33.Fork23
    vi pom.xml
    

    Modify the following:

    Replace http://www.us.apache.org with https://archive.apache.org.

  3. Modify the link for downloading the BoringSSL source code in the pom.xml file to avoid access timeout.
    1
    vi boringssl-static/pom.xml
    

    Content to be modified is as follows:

    Replace https://boringssl.googlesource.com/boringssl with https://github.com/google/boringssl.

  4. Download openssl-1.0.2j and place it in netty-tcnative-netty-tcnative-1.1.33.Fork19/openssl-static/target.
    1
    2
    3
    wget https://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2j.tar.gz
    mkdir -p openssl-static/target
    mv openssl-1.0.2j.tar.gz openssl-static/target
    
  5. Perform the compilation.
    1
    mvn package -DskipTests
    

    The compilation target netty-tcnative-boringssl-static-1.1.33.Fork23.jar is in the netty-tcnative-netty-tcnative-parent-1.1.33.Fork23/boringssl-static/target directory.

  6. Use the Kunpeng Porting Advisor to scan the package generated after the compilation and ensure that the package does not contain x86 .so or .jar packages.
    • The compiled netty-tcnative-boringssl-static-1.1.33.Fork23.jar package must be scanned by the Kunpeng Porting Advisor to ensure that the package does not contain x86 .so or .jar files. If the compiled directory contains x86 .so or .jar files, the component functions may be affected.
    • For details about how to use the Kunpeng Porting Advisor, see .