日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

linux平臺下ZeroMQ zmq(C++)編譯安裝以及調用

作者:別出BUG求求了 更新時間: 2023-11-13 編程語言

安裝

  1. 下載源碼
    進入官網:https://github.com/zeromq/libzmq,解壓到指定目錄。

  2. 編譯安裝
    進入libzmq解壓后的目錄,執行以下命令:

./autogen.sh
./configure
make
sudo make install

說明: 某些情況下可能需要使用libsodium加密庫替換默認內置的tweetnacl加密庫,則需要加上選項–with-libsodium(需要安裝libsodium),大部分情況下不需要該選項。、

sudo ldconfig

默認路徑在/opt/zmq下面,編譯直接調用即可

問題排查

  1. ./configure 生成makefile 如果報錯:
sudo apt-get install g++
sudo apt-get install libuuid-devel
  1. 執行./autogen.sh時出現報錯

autogen.sh: error: could not find pkg-config. pkg-config is required to run autogen.sh.

sudo apt-get install pkg-config

autogen.sh: error: could not find libtool. libtool is required to run autogen.sh

sudo apt-get install libtool-bin
sudo apt-get install libtool

autogen.sh:error: could not find autoreconf. autoconf and automake are required to runautogen.sh

sudo apt-get install autoreconf*

原文鏈接:https://blog.csdn.net/weixin_39589455/article/details/129542898

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新