Skip to content

Instantly share code, notes, and snippets.

@felixfyi
Forked from gblmarquez/0mq_install.sh
Created June 26, 2012 14:55
Show Gist options
  • Save felixfyi/2996253 to your computer and use it in GitHub Desktop.
Save felixfyi/2996253 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 gcc-c++ make autoconf automake e2fsprogs-devel glibc-devel libuuid-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