Skip to content

Instantly share code, notes, and snippets.

@flores
Created August 8, 2011 21:10
Show Gist options
  • Save flores/1132745 to your computer and use it in GitHub Desktop.
Save flores/1132745 to your computer and use it in GitHub Desktop.
centos | debian zeromq install (from source)
#!/bin/bash
# doesn't remove packages. just beginning/sharing script for the install.
if [ -e /etc/redhat-release ]; then
yum install -y gcc make autoconf automake e2fsprogs-devel glibc-devel
elif [ -e /etc/debian_version ]; then
apt-get install -y build-essential uuid-dev
else
echo "sorry, this script only installs on RedHat/CentOS or Debian/Ubuntu boxes"
exit 2
fi
cd /usr/src
mkdir /usr/local/zeromq
wget http://download.zeromq.org/zeromq-2.1.7.tar.gz
tar xfz zeromq-2.1.7.tar.gz
cd zeromq-2.1.7
./configure --prefix=/usr/local/zeromq
make && make install
ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment