RocksDB Installation on Ubuntu 12.04
RocksDB Installation on Ubuntu 12.04
- Platform Setup
1. Gcc 4.7 to support C++10
i. Check gcc version, if it is less than 4.7,
1. sudo dpkg -l | grep gcc | awk '{print $2}'
ii. Install gcc and g++ 4.7
1. sudo add-apt-repository ppa:ubuntu-toolchain-r/test
2. sudo apt-get update
3. sudo apt-get install gcc-4.7 g++-4.7
iii. alternative setup
1. $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40
2. $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20
3. $ sudo update-alternatives --display gcc
4. If the gcc 4.7 is not setup yet, update it manually
a. $sudo update-alternatives –config gcc
b. Choose gcc 4.7
5. $ gcc ---version
iv. G++-4.7, repeat the process (iii)
v. Install zlib
1. $sudo apt-get install zlib1g-dev
vi. Install snappy
1. $sudo apt-get install libsnappy-dev
2. [may not be required] $sudo apt-get install snappy
vii. Install bzip2
1. $sudo apt-get install libbz2-dev
viii. Install gflags
1. For static library, and all our tools and unit tests
2. Refer the Installation Guide, gflags on Ubuntu 12.04
- Installation RocksDB
1. Download RocksDB
a. wget https://github.com/facebook/rocksdb/archive/master.zip
2. Compile
a. make static_lib --> make (it compiles db_bench and other utilities for test)
b. make check
c. make all
'Dababase' 카테고리의 다른 글
postgresql 9.3 on SpecVirt 작업 일지 (0) | 2016.02.05 |
---|---|
port forwarding (0) | 2016.02.02 |
examplie: test application for rocksdb compile (0) | 2015.07.18 |
Rocks DB 설치 on Ubuntu 12.04 LTS (0) | 2015.07.18 |
Installing gflags 12.04 (0) | 2015.07.17 |