Compiling and Installing Software
Compiling and Installing apr-1.5.2
- Download the apr-1.5.2 source code package and decompress it.
1 2
wget https://archive.apache.org/dist/apr/apr-1.5.2.tar.gz tar -zxvf apr-1.5.2.tar.gz
- Go to the directory generated after the decompression.
1cd apr-1.5.2
- Perform the compilation and installation.
1 2 3
./configure make make install
Compiling and installing netty-tcnative-1.1.32.Fork1
- Download the netty-tcnative-1.1.32.Fork1 source code package.
1wget https://codeload.github.com/netty/netty-tcnative/tar.gz/netty-tcnative-1.1.32.Fork1 - Decompress the source code package.
1 2
mv netty-tcnative-1.1.32.Fork1 netty-tcnative-1.1.32.Fork1.tar.gz tar -zxvf netty-tcnative-1.1.32.Fork1.tar.gz
- Switch to the directory where the netty-tcnative source code package is decompressed.
1cd netty-tcnative-netty-tcnative-1.1.32.Fork1
- Compile and package the file to the local Maven repository.
1mvn install
Compiling and Installing netty-4.0.27.Final
- Download the netty-4.0.27 source code package.
1wget https://github.com/netty/netty/archive/netty-4.0.27.Final.tar.gz - Decompress the source code package.
1tar -zxvf netty-4.0.27.Final.tar.gz
- Go to the directory where the Netty source package is decompressed.
1cd netty-netty-4.0.27.Final
- Compile and package netty-4.0.27.Final.jar to the all/target directory.
1mvn install -DskipTests
Compiling Flink-shaded-netty
- Download the flink-shaded-2.0 installation package.
1wget https://codeload.github.com/apache/flink-shaded/tar.gz/2.0 - Decompress the installation package.
1 2
mv 2.0 flink-shaded-2.0.tar.gz tar -zxvf flink-shaded-2.0.tar.gz
- Go to the directory generated after the decompression.
1cd flink-shaded-2.0
- Modify the pom.xml file. You only need to compile and package flink-shaded-netty-4. Therefore, comment out the modules that are not required.
- Open the file.
1vi pom.xml - Press i to enter the insert mode and modify the content of <modules> as follows:
1 2 3 4 5 6
<modules> <!--<module>flink-shaded-asm-5</module> <module>flink-shaded-guava- 18</module>--> <module>flink-shaded-netty-4</module> <! --<module>flink-shaded-jackson-2</module>--> </modules>
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Compile and package flink-shaded-netty-4.0.27.Final-2.0.jar to the flink-shaded-netty-4/target/ directory.
1mvn install package -DskipTests
Parent topic: Flink-shaded-netty Porting Guide (CentOS&openEuler)