Last active
December 14, 2015 02:59
-
-
Save boxxxie/5018076 to your computer and use it in GitHub Desktop.
installing leoFS ubuntu12.10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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