Skip to content

Instantly share code, notes, and snippets.

@lukealbao
Last active August 29, 2015 14:19
Show Gist options
  • Save lukealbao/72ba850ad43f74a047aa to your computer and use it in GitHub Desktop.
Save lukealbao/72ba850ad43f74a047aa to your computer and use it in GitHub Desktop.
Install ZeroMQ to EB AMI
#! /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