最近换了新的电脑,项目上需要使用zmq库。就把从安装vmware,虚拟机到最终移植到开发板上运行的流程都走了一遍。
1、安装vmware16,注册码
2、下载Ubuntu20.04.1镜像
3、下载Zmq4.1.4zip包(翻墙)
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下。
(如果存在链接文件,就先打包再拖)