-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrerequisite
More file actions
35 lines (29 loc) · 1.31 KB
/
Prerequisite
File metadata and controls
35 lines (29 loc) · 1.31 KB
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
Because benchMark use the headers and libs of (json, yaml-cpp, rados, rbd), and the makefile of benchMark use the libs directly,
so we need to ensure program can find all these libs from system path, (/usr/include, /usr/lib/)
-ljson_linux -lrados -lrbd -lyaml-cpp
1. install yaml-cpp
download yaml-cpp from https://code.google.com/p/yaml-cpp/downloads/detail?name=yaml-cpp-0.5.1.tar.gz
install accroding to 'install.txt'
you may have below problem on Centos 6.5:
```
The imported target "boost_date_time-static" references the file
"/usr/lib64/lib64/libboost_date_time.a"
but this file does not exist.
```
just run"cmake .. -DBoost_NO_BOOST_CMAKE=ON"
scon is needed by jscon, so we should install scon first
2. install scon
download scons from http://www.scons.org/
tar -zxvf scons-2.0.1.tar.gz
set env
export MYSCONS= /path/to/scon/
export SCONS_LIB_DIR=$MYSCONS/engine
3. install jscon
download from http://sourceforge.net/projects/jsoncpp/
tar zxvf jsoncpp-src-0.5.0.tar.gz
cd jsoncpp-src-0.5.0
python $MYSCONS/script/scons platform=linux-gcc
cp -r include/json /usr/include
** my gcc version is 4.4.7, so repalce it with your gcc version **
cp libs/linux-gcc-4.4.7/* /usr/lib/
ln -s /usr/lib/libjson_linux-gcc-4.4.7_libmt.so /usr/lib/libjson_linux