Rate This Document
Findability
Accuracy
Completeness
Readability

Netty-all-4.1.17

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-parent-2.0.7.Final

  1. Download the netty-tcnative-parent-2.0.7.Final source package.
    1
    2
    wget https://codeload.github.com/netty/netty-tcnative/tar.gz/netty-tcnative-parent-2.0.7.Final
    mv netty-tcnative-parent-2.0.7.Final netty-tcnative-parent-2.0.7.Final.tar.gz
    
  2. Decompress the source package.
    1
    tar -zxvf netty-tcnative-parent-2.0.7.Final.tar.gz
    
  3. Go to the directory where the Netty source package is decompressed.
    1
    cd netty-tcnative-netty-tcnative-parent-2.0.7.Final
    
  4. Modify the pom.xml file to mask the compilation of BoringSSL.
    1. Open the file.
      vi 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 package the file to the local Maven repository. The following error information is displayed:
    1
    mvn install
    

  6. Modify the openssl-static/pom.xml file.
    1. Open the file.
      vi openssl-static/pom.xml
    2. Press i to enter the insert mode and comment out the three locations for downloading openssl-1.0.2l in the file.

      Location 1:

      Location 2:

      Location 3:

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Download the openssl-1.0.2l.tar.gz package to the following directory:
    1
    2
    wget https://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2l.tar.gz
    mv openssl-1.0.2l.tar.gz netty-tcnative-netty-tcnative-parent-2.0.7.Final/openssl-static/target
    
  8. Compile and package the file to the local Maven repository.
    1
    mvn install
    

Compiling and Installing netty-4.1.17

  1. Download the netty-4.1.17 source code.
    1
    wget https://github.com/netty/netty/archive/netty-4.1.17.Final.tar.gz
    
  2. Decompress the source package.
    1
    tar -zxvf netty-4.1.17.Final.tar.gz
    
  3. Go to the directory where the Netty source package is decompressed.
    1
    cd netty-netty-4.1.17.Final
    
  4. In the pom.xml file, comment out the following code:
    1. Open the file.
      vi pom.xml
    2. Press i to enter the insert mode and comment out the following code:

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Compile and generate netty-all-4.1.17.Final.jar in the all/target directory, and netty-transport-native-epoll-4.1.17.Final.jar and netty-transport-native-epoll-4.1.17.Final-linux-aarch64_64.jar in the transport-native-epoll/target directory.
    1
    mvn package -DskipTests