Linux - Ubuntu
- Upgrade gcc version at least 4.8
- gflags:
sudo apt-get install libgflags-devIf this doesn't work, here's a nice tutorial: (http://askubuntu.com/questions/312173/installing-gflags-12-04) - snappy:
sudo apt-get install libsnappy-dev - zlib:
sudo apt-get install zlib1g-dev - bzip2:
sudo apt-get install libbz2-dev
First, compile RocksDB. Details
$ git clone https://github.com/facebook/rocksdb
$ cd rocksdb
$ make
$ make checkI installed gflags using its github repository. Details
$ git clone https://github.com/gflags/gflags
$ cd gflags
$ mkdir build && cd build
$ ccmake ..
$ makeThen, go back to the rocksdb folder and run db_bench.
$ ./db_benchYou can see options of db_bench using below command.
$ ./db_bench --help