Skip to content

Instantly share code, notes, and snippets.

@boxxxie
Last active December 14, 2015 02:59
Show Gist options
  • Save boxxxie/5018076 to your computer and use it in GitHub Desktop.
Save boxxxie/5018076 to your computer and use it in GitHub Desktop.
installing leoFS ubuntu12.10
#!/bin/bash
#http://www.leofs.org/docs/getting_started.html
#http://www.erlang.org/download_release/16
#https://github.com/leo-project/leofs
sudo apt-get install libtool libncurses5-dev libssl-dev
wget http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-7.2d.tar.gz
tar xzvf libatomic_ops-7.2d.tar.gz
cd libatomic_ops-7.2
./configure --prefix=/usr/local
make
sudo make install
cd -
wget http://www.erlang.org/download/otp_src_R15B03-1.tar.gz
tar xzf otp_src_R15B03-1.tar.gz
cd otp_src_R15B03
./configure --prefix=/usr/local/erlang/R15B03 --enable-smp-support --enable-m64-build --enable-halfword-emulator --enable-kernel-poll --without-javac --disable-native-libs --disable-hipe --disable-sctp --enable-threads --with-libatomic_ops=/usr/local
make
sudo make install
cd -
#updating path so that other erlangs don't conflict
#this needs to be done whenever running leofs as well
PATH="/usr/local/erlang/R15B03/bin/:$PATH"
git clone https://github.com/leo-project/leofs.git
cd leofs
make
make release
LEOFS_DEPLOYED_DIR=~/leofs_deployed
mkdir -p "${LEOFS_DEPLOYED_DIR}"
cp -r package/leofs "${LEOFS_DEPLOYED_DIR}"
cd "${LEOFS_DEPLOYED_DIR}/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment