gpt4 book ai didi

ubuntu - 如何从源代码在 Ubuntu 16.10 上安装 ZeroMQ 4

转载 作者:行者123 更新时间:2023-12-04 18:57:36 26 4
gpt4 key购买 nike

如何安装 ZeroMQ 4 Ubuntu 16.10 从源文件?

最佳答案

您可以使用以下 bash 脚本来安装 ZeroMQ 4 Ubuntu 16.10 机器:

#!/usr/bin/env bash

# Exiting on errors
set -e

# Set required version
VERSION="4.2.0"

# Asking for sudo password
sudo whoami

echo "Downloading ZeroMQ"
wget https://github.com/zeromq/libzmq/releases/download/v${VERSION}/zeromq-${VERSION}.tar.gz

echo "Unpacking"
tar xvzf zeromq-${VERSION}.tar.gz

echo "Installing dependencies"
sudo apt-get update && \
sudo apt-get install -y libtool pkg-config build-essential autoconf automake uuid-dev

echo "Changing directory"
cd zeromq-${VERSION}

echo "Configuring"
./configure

echo "Compiling"
make

echo "Installing"
sudo make install

echo "Installing ZeroMQ driver"
sudo ldconfig

echo "Checking installation"
ldconfig -p | grep zmq

只需将版本字符串更改为所需的字符串!

Here's the Gist for future reference.

关于ubuntu - 如何从源代码在 Ubuntu 16.10 上安装 ZeroMQ 4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41289619/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com