Netty-all-4.1.17
Installing APR
- Download the apr-1.5.2 source package.
1wget https://archive.apache.org/dist/apr/apr-1.5.2.tar.gz - Decompress apr-1.5.2.tar.gz.
1tar -xvzf apr-1.5.2.tar.gz
- Go to the apr-1.5.2 directory.
1cd apr-1.5.2
- 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
- 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
- Decompress the source package.
1tar -zxvf netty-tcnative-parent-2.0.7.Final.tar.gz
- Go to the directory where the Netty source package is decompressed.
1cd netty-tcnative-netty-tcnative-parent-2.0.7.Final
- Modify the pom.xml file to mask the compilation of BoringSSL.
- Open the file.
vi pom.xml
- Press i to enter the insert mode and comment out <module>boringssl-static</module>.

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Compile and package the file to the local Maven repository. The following error information is displayed:
1mvn install
- Modify the openssl-static/pom.xml file.
- Open the file.
vi openssl-static/pom.xml
- 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:

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- 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
- Compile and package the file to the local Maven repository.
1mvn install
Compiling and Installing netty-4.1.17
- Download the netty-4.1.17 source code.
1wget https://github.com/netty/netty/archive/netty-4.1.17.Final.tar.gz - Decompress the source package.
1tar -zxvf netty-4.1.17.Final.tar.gz
- Go to the directory where the Netty source package is decompressed.
1cd netty-netty-4.1.17.Final
- In the pom.xml file, comment out the following code:
- Open the file.
vi pom.xml
- Press i to enter the insert mode and comment out the following code:

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- 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.
1mvn package -DskipTests
Parent topic: Compilation