forked from RangeNetworks/NodeManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_libzmq.sh
executable file
·34 lines (28 loc) · 937 Bytes
/
install_libzmq.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
echo "# checking for a compatible host"
if hash lsb_release 2>/dev/null; then
ubuntu=`lsb_release -r -s`
if [ $ubuntu != "12.04" ]; then
echo "# - WARNING : This script has only tested on Ubuntu 12.04, YMMV. Please open an issue if you've used it successfully on another version of Ubuntu."
else
echo "# - fully supported host detected: Ubuntu 12.04"
fi
else
echo "# - ERROR : Sorry, this script currently only supports Ubuntu as the host OS. Please open an issue for your desired host."
echo "# - exiting"
exit 1
fi
echo
echo "# adding additional repo tools"
sudo apt-get install -y software-properties-common python-software-properties
echo
echo "# adding modern zeromq repository"
sudo add-apt-repository -y ppa:chris-lea/zeromq
echo
echo "# updating repositories"
sudo apt-get update
echo
echo "# installing modern zeromq packages"
sudo apt-get install -y libzmq3-dev libzmq3 python-zmq
echo
echo "# done"