Skip to content

Instantly share code, notes, and snippets.

@tarunlalwani
Last active August 29, 2015 14:20
Show Gist options
  • Save tarunlalwani/fdb774fa11de316615e3 to your computer and use it in GitHub Desktop.
Save tarunlalwani/fdb774fa11de316615e3 to your computer and use it in GitHub Desktop.
This script will help you compile qpid 0.32 on Ubuntu LTS 14.04
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
QPID_VERSION=0.32
cd $HOME
echo "Creating new folder for qpid - $HOME/qpid"
mkdir qpid
cd qpid
echo "Downloading QPID Packages"
wget -nc http://www.us.apache.org/dist/qpid/$QPID_VERSION/qpid-cpp-$QPID_VERSION.tar.gz &
wget -nc http://www.us.apache.org/dist/qpid/$QPID_VERSION/qpid-tools-$QPID_VERSION.tar.gz &
wget -nc http://www.us.apache.org/dist/qpid/$QPID_VERSION/qpid-python-$QPID_VERSION.tar.gz &
wait
echo "Extracting all packages"
tar xf qpid-cpp-$QPID_VERSION.tar.gz &
tar xf qpid-tools-$QPID_VERSION.tar.gz &
tar xf qpid-python-$QPID_VERSION.tar.gz &
wait
echo "Packages Extracted"
echo "Installing dependcies"
sudo apt-get -qy install python-pip python
sudo apt-get -qy install pkg-config libaio-dev libdb++-dev libboost-all-dev ruby swig libnss3-dev gcc cmake doxygen libsasl2-dev uuid-dev valgrind e2fsprogs
echo "Building source files..."
cd qpid-cpp-$QPID_VERSION
mkdir bld
cd bld
cmake ..
cores=`nproc`
make -j$cores
make install
cd $HOME/qpid/qpid-tools-$QPID_VERSION
python setup.py install &
cd $HOME/qpid/qpid-python-$QPID_VERSION
python setup.py install &
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment