Created
December 20, 2016 12:04
-
-
Save toebbel/6834175230afea9f05c1765fcf783627 to your computer and use it in GitHub Desktop.
Install zeromq (zmq) library on fresh Amazon Linux (tested with amzn-ami-hvm-2016.03.3.x86_64-gp2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# compilers | |
sudo yum install -y gcc gcc-c++ | |
# libsodium: download, compile, install, remove intermediate files | |
curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.10.tar.gz | tar -xz | |
cd libsodium-1.0.11 | |
./configure && make && sudo make install | |
cd ../ && rm -rf libsodium-1.0.11 | |
# zmq 4.2.0 | |
wget https://github.com/zeromq/libzmq/releases/download/v4.2.0/zeromq-4.2.0.tar.gz | |
tar xfz zeromq-4.2.0.tar.gz && rm zeromq-4.2.0.tar.gz | |
cd zeromq-4.2.0 | |
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig | |
./configure | |
make | |
sudo make install | |
cd ../ && rm -rf zeromq-4.2.0 | |
# make sure zmq lib can be found | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | |
# remove compilers | |
sudo yum remove -y gcc-c++ gcc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment