-
Notifications
You must be signed in to change notification settings - Fork 263
Install From Sources
- GNU Autotools
- pkg-config
- corosync devel package
- git (when compiling from source repo)
- liburcu
- libtool
- libcfg
- libcpg
- yasm
- optional:zookeeper
- optional:fuse-devel (for sheepfs)
For ubuntu 14.04, install these using:
apt-get install autoconf pkg-config build-essential liburcu-dev libtool libcorosync-common-dev libcpg-dev libcfg-dev yasm
And install libzookeeper-mt-dev if you want to build zookeeper support.
DOWNLOAD latest stable release.
$ wget -O sheepdog-v0.9.3.tar.gz https://github.com/sheepdog/sheepdog/archive/v0.9.3.tar.gz $ tar xvzf sheepdog-v0.9.3.tar.gz $ cd sheepdog-0.9.3 $ ./autogen.sh $ ./configure --enable-zookeeper $ sudo make install $ cd ..
If you want to use every feature of the latest sheepdog, please clone our git repository.
$ git clone git://github.com/sheepdog/sheepdog.git $ cd sheepdog $ ./autogen.sh $ ./configure $ sudo make install $ cd ..
Please note, sheepdog supports a "make rpm" target which will generate an rpm package that can be installed on the local machine. To use this installation method, use the following instructions:
$ git clone git://github.com/collie/sheepdog.git $ cd sheepdog $ ./autogen.sh $ ./configure $ make rpm $ sudo rpm -ivh x86_64/sheepdog-0.* $ cd ..
QEMU 0.13 provides built-in support for sheepdog devices. Some distributions provide pre-built versions of this newer version of QEMU. If your distribution has an older version of QEMU or you prefer to compile from source, retrieve the latest QEMU and compile:
$ git clone git://git.sv.gnu.org/qemu.git $ cd qemu $ ./configure --enable-kvm --target-list="x86_64-softmmu" $ sudo make install $ cd ..
If you wish to use corosync instead of zookeeper
Nearly every modern Linux distribution has x86_64 corosync binaries pre-built available via their repositories. We recommend you use these packages if they are available on your distribution.
For debian package based systems:
$ sudo aptitude install corosync libcorosync-dev
For RPM package based systems:
$ sudo yum install corosynclib-devel
For EL6 (RHEL, CentOS, SL, etc), the provided version of corosync is too old and you must install corosync from source. The following command will remove any existing copies of corosync.
$ sudo yum remove corosync corosynclib corosynclib-devel
If your distribution doesn't provide the corosync packages, or you prefer to compile from source:
$ git clone git://github.com/corosync/corosync.git $ cd corosync $ git checkout -b flatiron origin/flatiron $ ./autogen.sh $ ./configure --enable-nss $ sudo make install
See also: Corosync Config