Rate This Document
Findability
Accuracy
Completeness
Readability

Netty-all-4.1.3

Installing APR

  1. Download the apr-1.5.2 source package.
    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 and Installing netty-tcnative-1.1.33.Fork19.jar

  1. Download the netty-tcnative-1.1.33.Fork19.zip source package and decompress it.
    1
    2
    wget https://github.com/netty/netty-tcnative/archive/netty-tcnative-1.1.33.Fork19.zip
    unzip netty-tcnative-1.1.33.Fork19.zip
    
  2. In the pom.xml file, modify the link for downloading the apr-1.5.2.tar.gz package to prevent access timeout.
    1. Go to the netty-tcnative-netty-tcnative-1.1.33.Fork19 directory and open the file.
      1
      2
      cd netty-tcnative-netty-tcnative-1.1.33.Fork19
      vi pom.xml
      
    2. Press i to enter the insert mode. There are two locations for modifying the content, as shown in the following figure:

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

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Download openssl-1.0.2h to 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.2h.tar.gz
    mkdir -p netty-tcnative-netty-tcnative-1.1.33.Fork19/openssl-static/target
    mv openssl-1.0.2h.tar.gz netty-tcnative-netty-tcnative-1.1.33.Fork19/openssl-static/target
    
  4. Comment out the compilation part of the boringssl-static module in the pom.xml file.
    1. Open the file.
      1
      vi netty-tcnative-netty-tcnative-1.1.33.Fork19/pom.xml
      
    2. Press i to enter the insert mode and comment out <module>boringssl-static</module>.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Compile and install netty-tcnative-1.1.33.Fork19.jar to the local Maven repository.
    1
    mvn install -DskipTests
    

    The compiled package netty-tcnative-1.1.33.Fork19.jar is in the openssl-dynamic/target/ directory.

Compiling netty-all-4.1.3.Final.jar

  1. Download the source package and decompress it.
    wget https://github.com/netty/netty/archive/netty-4.1.3.Final.tar.gz
    tar -zxvf netty-4.1.3.Final.tar.gz
  2. Modify the pom.xml file.
    1. Open the file.
      1
      vi netty-netty-4.1.3.Final/pom.xml
      
    2. Press i to enter the insert mode and comment out the following content:
      1. Comment out the Fedora content.

      2. Comment out the JDK content related to the x86_64 version.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Compile netty-all-4.1.3.Final.jar.
    1
    2
    cd netty-netty-4.1.3.Final
    mvn package -DskipTests
    

    You can view the compiled netty-all-4.1.3.Final.jar package in the netty-netty-4.1.3.Final/all/target directory.

  4. 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-all.4.1.3.Final.jar must be scanned by using the Kunpeng Porting Advisor to ensure that no x86 .so or .jar packages are contained. If the compiled package contains x86 .so or .jar packages, the software functions may be affected.
    • For details about how to use the Kunpeng Porting Advisor, see .