Skip to content

Instantly share code, notes, and snippets.

@gblmarquez
Forked from flores/0mq_install.sh
Created April 27, 2012 18:48
Show Gist options
  • Save gblmarquez/2511754 to your computer and use it in GitHub Desktop.
Save gblmarquez/2511754 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
@gblmarquez
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment