Performing Compilation and Installation
Installing APR
- Download the apr-1.5.2 source code.
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 netty-tcnative-boringssl-static-1.1.33.Fork23.jar
- 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
- 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.


- Modify the link for downloading the BoringSSL source code in the pom.xml file to avoid access timeout.
1vi boringssl-static/pom.xmlContent to be modified is as follows:
Replace https://boringssl.googlesource.com/boringssl with https://github.com/google/boringssl.

- 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
- Perform the compilation.
1mvn 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.

- 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 .