Skip to content

Latest commit

 

History

History
63 lines (31 loc) · 1.7 KB

INSTALL.md

File metadata and controls

63 lines (31 loc) · 1.7 KB

Compilation and Build

We use CMake to provide the build support for a wide range of platforms. Please follow the instructions below to install CMake in your target platform.

  • Ubuntu

    sudo apt-get install cmake

  • Centos

    wget http://www.cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz

    tar xvfz cmake-2.8.12.1.tar.gz

    cd cmake-2.8.12.1

    ./bootstrap && make && sudo make install

  • OS X

    brew install cmake

Once CMake is installed, please follow the instructions below to compile and build the benchmark program on Ubuntu, Centos, or OS X:

git clone ForestDB-Benchmark_repo_url

cd ForestDB-Benchmark

mkdir build

cd build

cmake ../

Note that DB libraries that you want to evaluate with the benchmark program should be installed before executing cmake command.

If you have libraries or include header files in non-standard locations, you can assign custom paths as follows:

cmake -DCMAKE_INCLUDE_PATH=[your_include_path] -DCMAKE_LIBRARY_PATH=[your_library_path] ../

(We recommend that all custom paths should be absolute paths to avoid potential problems.)

After that, you can build each benchmark program using commands below:

make fdb_bench: ForestDB benchmark

make couch_bench: Couchstore benchmark

make leveldb_bench: LevelDB benchmark

make rocksdb_bench: RocksDB benchmark

make wt_bench: WiredTiger benchmark

If the following error occurs due to the custom library path,

error while loading shared libraries: [library_filename]: cannot open shared object file: No such file or directory

you need to manually set the environmental variable LD_LIBRARY_PATH as follows:

export LD_LIBRARY_PATH=[your_library_path]