移植zmq流程--linux下源码编译

最近换了新的电脑,项目上需要使用zmq库。就把从安装vmware,虚拟机到最终移植到开发板上运行的流程都走了一遍。

1、安装vmware16,注册码

2、下载Ubuntu20.04.1镜像

3、下载Zmq4.1.4zip包(翻墙)

http://download.zeromq.org/

4、vmware内实现文件拖放

https://blog.csdn.net/y_k_y/article/details/82857745https://blog.csdn.net/y_k_y/article/details/

82857745

5、Ubuntu换apt-get源:

https://blog.csdn.net/qq_24326765/article/details/81916222

6./configure及make,make install

zy@zy-virtual-machine:~/下载/zeromq-4.1.4$ ./configure

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /usr/bin/mkdir -p

checking for gawk... no

checking for mawk... mawk

checking whether make sets $(MAKE)... no

checking whether make supports nested variables... no

checking whether UID '1000' is supported by ustar format... yes

checking whether GID '1000' is supported by ustar format... yes

checking how to create a ustar tar archive... gnutar

checking whether make supports nested variables... (cached) no

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: in `/home/zy/下载/zeromq-4.1.4':

configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details

安装gcc:

sudo apt-get update

sudo apt-get install gcc

再次 ./configure

checking whether we are using Intel C compiler... no

checking whether we are using Sun Studio C compiler... no

checking whether we are using clang C compiler... no

checking whether we are using gcc >= 4 C compiler... yes

checking whether the C++ compiler works... no

configure: error: Unable to find a working C++ compiler

安装c++ compiler

Sudo apt-get install g++

./configure成功

make流程:

touch make.log

make V=s > make.log

zy@zy-virtual-machine:~/下载/zeromq-4.1.4$ make V=s > make.log

Make install

zy@zy-virtual-machine:~/下载/zeromq-4.1.4$ sudo make install

[sudo] zy 的密码:

7、测试成功后将,将整个文件脱到win10下。

(如果存在链接文件,就先打包再拖)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值