-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy_ceph_env_centos6.sh
55 lines (46 loc) · 1.11 KB
/
deploy_ceph_env_centos6.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh
# Install dependent package
yum install libuuid-devel libblkid-devel libudev-devel fuse-devel libedit-devel libatomic_ops-devel
# Install leveldb
wget https://leveldb.googlecode.com/files/leveldb-1.14.0.tar.gz
tar zxvf leveldb-1.14.0.tar.gz
cd leveldb-1.14.0
make
cp libleveldb.* /usr/lib
cp -r include/leveldb /usr/local/include/
cd ..
# Install tcmalloc
#need libunwind first
wget http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99-beta.tar.gz
tar zxvf libunwind-0.99-beta.tar.gz
cd libunwind-0.99-beta
./configure
make && make install
cd ..
#than gperftools
wget https://googledrive.com/host/0B6NtGsLhIcf7MWxMMF9JdTN3UVk/gperftools-2.2.1.tar.gz
tar zxvf gperftools-2.2.1.tar.gz
cd gperftools-2.2.1
./configure
make
make install
cd ..
# Install lz4
svn checkout http://lz4.googlecode.com/svn/trunk/ lz4
cd lz4/
make
cp liblz4.* /usr/lib
cd ..
# Install argparse
git clone https://github.com/AlfredChenxf/useful_script
cd useful_script
python ez_setup.py
easy_install pip
pip install argparse
cd ..
# Install fdf-ceph
git clone https://github.com/ceph/ceph
cd ceph
./autogen.sh
./configure
make