1
|
wget https://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
|
1
|
tar -xvzf apr-1.5.2.tar.gz |
1
|
cd apr-1.5.2 |
1 2 |
./configure --prefix=/usr/local/apr make && make install |
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 |
1 2 |
cd netty-tcnative-netty-tcnative-1.1.33.Fork19 vi pom.xml |
修改内容的位置有两处,如下:
http://www.us.apache.org替换为https://archive.apache.org。
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 |
1
|
vi netty-tcnative-netty-tcnative-1.1.33.Fork19/pom.xml
|
1
|
mvn install -DskipTests |
编译目标netty-tcnative-1.1.33.Fork19.jar在目录“openssl-dynamic/target/”下。