Last active
August 29, 2015 14:19
-
-
Save lukealbao/72ba850ad43f74a047aa to your computer and use it in GitHub Desktop.
Install ZeroMQ to EB AMI
This file contains hidden or 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
#! /bin/bash -e | |
## | |
## To install ZeroMQ, you can download this file and run it directly in the shell: | |
## | |
## $> sudo wget <uri> | sh | |
## | |
## You can get the <uri> by clicking on the `Raw` button above the Gist. | |
## Changes: | |
## * In order to install the latest version, change the version number in the SOURCE | |
## variable below (line 15). | |
## * Any change you make to this gist will change the URI. So, any time you run the wget | |
## above, you should not assume that an old URI is correct. | |
SITE=http://download.zeromq.org/ | |
SOURCE=zeromq-4.0.5 | |
echo "Downloading and installing ZMQ from $SITE/$SOURCE.tar.gz" | |
if [ ! -f "$SOURCE.tar.gz" ]; then | |
wget $SITE/$SOURCE.tar.gz | |
fi | |
echo "Extracting files to $SOURCE" | |
if [! -d "$SOURCE" ]; then | |
tar -xf $SOURCE.tar.gz | |
fi | |
echo "Making and installing. Are you running with sudo?" | |
cd $SOURCE/ | |
./configure | |
make install | |
echo "/usr/local/lib" >> /etc/ld.so.conf | |
ldconfig | |
cd - | |
echo "Base ZeroMQ packageis installed. You must still install Node packages." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment