netty源代码编译_mac os
程序员文章站
2022-03-24 12:21:35
工作中会用到netty,有随手整理笔记的习惯,故学习整理下,之前看过了理论知识,接下来就看下源码了,先来编译下 个人 fork git:https://github.com/ending06/netty netty 学习wiki记录:https://github.com/ending06/netty ......
工作中会用到netty,有随手整理笔记的习惯,故学习整理下,之前看过了理论知识,接下来就看下源码了,先来编译下
个人 fork git:
netty 学习wiki记录:https://github.com/ending06/netty/wiki/netty%e6%ba%90%e7%a0%81%e7%bc%96%e8%af%91%e2%80%94%e2%80%94mac-os
1. 下载源码 https://github.com/netty/netty
2.之前编译了一次,失败了,具体错误不贴了,看了下https://netty.io/wiki/native-transports.html
3.修改配置,父parent
<build> <extensions> <extension> <groupid>kr.motd.maven</groupid> <artifactid>os-maven-plugin</artifactid> <version>1.5.0.final</version> </extension> </extensions> ... </build>
building the macos/bsd native transport to build the native transport, you need to use macos 10.12 or higher. please also install the required tools and libraries:
brew install autoconf automake libtool
4. mvn -u -x clean package 看具体出错的位置
5. 编译环境
1.系统:mac os high sierra 10.13.6 2
2.jdk
~ $ java -version java version "1.8.0_191" java(tm) se runtime environment (build 1.8.0_191-b12) java hotspot(tm) 64-bit server vm (build 25.191-b12, mixed mode)
3.mvn
~ $ mvn -version apache maven 3.5.0 maven home: /xxxxxx/apache-maven-3.5.0 java version: 1.8.0_191, vendor: oracle corporation java home: /xxxxxx/jdk1.8.0_191.jdk/contents/home/jre default locale: zh_cn, platform encoding: utf-8 os name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"
4.ide
6.mvn install -dskiptests
7.result
[info] reactor summary: [info] [info] netty/dev-tools .................................... success [ 1.438 s] [info] netty .............................................. success [ 6.160 s] [info] netty/common ....................................... success [ 45.395 s] [info] netty/buffer ....................................... success [ 13.871 s] [info] netty/resolver ..................................... success [ 4.270 s] [info] netty/transport .................................... success [ 12.567 s] [info] netty/codec ........................................ success [ 10.514 s] [info] netty/codec/dns .................................... success [ 6.099 s] [info] netty/codec/haproxy ................................ success [ 3.874 s] [info] netty/handler ...................................... success [ 12.510 s] [info] netty/codec/http ................................... success [ 12.516 s] [info] netty/codec/http2 .................................. success [ 12.402 s] [info] netty/codec/memcache ............................... success [ 4.390 s] [info] netty/codec/mqtt ................................... success [ 5.057 s] [info] netty/codec/redis .................................. success [ 5.322 s] [info] netty/codec/smtp ................................... success [ 3.429 s] [info] netty/codec/socks .................................. success [ 5.034 s] [info] netty/codec/stomp .................................. success [ 3.950 s] [info] netty/codec/xml .................................... success [ 3.838 s] [info] netty/handler/proxy ................................ success [ 5.261 s] [info] netty/resolver/dns ................................. success [ 14.965 s] [info] netty/transport/rxtx ............................... success [ 2.460 s] [info] netty/transport/sctp ............................... success [ 5.019 s] [info] netty/transport/udt ................................ success [ 4.724 s] [info] netty/example ...................................... success [ 8.419 s] [info] netty/transport/native/unix/common ................. success [ 5.272 s] [info] netty/testsuite .................................... success [ 6.433 s] [info] netty/transport/native/unix/common/tests ........... success [ 5.337 s] [info] netty/transport/native/kqueue ...................... success [ 26.313 s] [info] netty/all-in-one ................................... success [ 7.457 s] [info] netty/tarball ...................................... success [ 1.681 s] [info] netty/transport/native/epoll ....................... success [ 7.063 s] [info] netty/testsuite/autobahn ........................... success [ 3.038 s] [info] netty/testsuite/http2 .............................. success [ 4.000 s] [info] netty/testsuite/osgi ............................... success [ 4.870 s] [info] netty/testsuite/shading ............................ success [ 12.622 s] [info] netty/microbench ................................... success [ 30.042 s] [info] netty/bom .......................................... success [ 0.009 s] [info] ------------------------------------------------------------------------ [info] build success [info] ------------------------------------------------------------------------ [info] total time: 05:28 min [info] finished at: 2018-12-21t09:02:37+08:00 [info] final memory: 95m/759m [info] ------------------------------------------------------------------------
推荐阅读
-
Mac OS下为Android Studio编译FFmpeg解码库的详细教程
-
Mac OS下为Android Studio编译FFmpeg解码库的详细教程
-
在Mac OS上编译安装Nginx+PHP+MariaDB开发环境的教程
-
在Mac OS上安装Go语言编译器的方法
-
Mac OS上反编译android app的环境搭建
-
netty源代码编译_mac os
-
在Mac OS上自行编译安装Apache服务器和PHP解释器
-
在Mac OS上编译安装Nginx+PHP+MariaDB开发环境的教程,nginxmariadb_PHP教程
-
在Mac OS上编译安装Nginx+PHP+MariaDB开发环境的教程_PHP
-
在Mac OS上自行编译安装Apache服务器和PHP解释器