美文网首页
交叉编译arm版tcping

交叉编译arm版tcping

作者: 叶迎宪 | 来源:发表于2021-02-05 16:12 被阅读0次

windows版的tcping比较强大 https://www.elifulkerson.com/projects/tcping.php
但是原来的linux版就很烂了 https://github.com/mkirchner/tcping

github上面看到一个golang重写的tcping,应该可以交叉编译到海思板子上面用
https://github.com/cloverstd/tcping

需要先搭建golang的开发环境,参考 https://www.cnblogs.com/yiyi20120822/p/11652612.html
wget https://golang.org/dl/go1.15.7.linux-amd64.tar.gz
tar -C /usr/local -zxvf go1.15.7.linux-amd64.tar.gz

vi /etc/profile
末尾加入 export PATH=$PATH:/usr/local/go/bin

如果go version有输出,则go安装完成。接着搭建工作环境
mkdir $HOME/go
vi ~/.profile
末尾加入 export GOPATH=$HOME/go

顺便更换一下golang为国内代理,否则下载依赖包会失败
go env -w GOPROXY=https://goproxy.cn

接着开始编译cloverstd/tcping,把源码解压到某个目录下,make dist
编译完成后,会生成 dist/ 子目录里面的 linux/armhf

相关文章

网友评论

      本文标题:交叉编译arm版tcping

      本文链接:https://www.haomeiwen.com/subject/vourzktx.html