Skip to content

Instantly share code, notes, and snippets.

@pashinin
Last active October 30, 2017 09:24
Show Gist options
  • Save pashinin/8296c6f2dad1ac075e0cfa4f18d1f56f to your computer and use it in GitHub Desktop.
Save pashinin/8296c6f2dad1ac075e0cfa4f18d1f56f to your computer and use it in GitHub Desktop.
Installing pacemaker from sources on Ubuntu
#!/bin/bash
# bash <(curl -s https://gist.githubusercontent.com/pashinin/8296c6f2dad1ac075e0cfa4f18d1f56f/raw/pacemaker_install_ubuntu.sh)
# for pacemaker
sudo apt-get install -y libtool uuid-dev libglib2.0-dev libxml2-dev libxslt1-dev libbz2-dev libqpx-dev libqb-dev libcpg-dev libcfg-dev corosync-dev libcmap-dev libquorum-dev
# corosync
# sudo apt-get install -y libnss3-dev mock
# [ -d corosync ] || git clone --depth=1 git://github.com/corosync/corosync.git
# cd corosync
# ./autobuild.sh
# # [ -f Makefile ] || ./autogen.sh && ./configure
# cd ..
# pacemaker
[ -d pacemaker ] || git clone --depth=1 git://github.com/ClusterLabs/pacemaker.git -b Pacemaker-1.1.17
cd pacemaker
[ -f Makefile ] || (./autogen.sh && ./configure)
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment