Dependencies
Speedb's library should be able to compile without any dependency installed.
Although we recommend installing some compression libraries:
zlib - for data compression
bzip2 - for data compression
lz4 - for extremely fast data compression
snappy - for fast data compression
zstandard - for fast real-time compression algorithms
All of our tools depend on gflags. This is a library that handles command line flag processing. Note that this is only required for building the tools, and that you can compile the Speedb library even if you don't have gflags installed.
make checkwill also check code formatting, which requires clang-formatTo build the RocksJava static target, then CMake is required for building Snappy
If you want to run microbench (e.g,
make microbench,make ribbon_benchorcmake -DWITH_BENCHMARK=1), Google benchmark >= 1.6.0 is needed.
Prerequisites:
gcc/clang with C++17 support (GCC >= 7, Clang >= 5).
Supported Platforms
Linux - Ubuntu
Upgrade your gcc to version at least 7 to get C++17 support
Install gflags: First, try
sudo apt-get install libgflags-devIf this doesn't work and you're using Ubuntu, here's a good tutorial: (http://askubuntu.com/questions/312173/installing-gflags-12-04)Install Snappy: This is usually done easily by running:
sudo apt-get install libsnappy-dev.Install zlib: Try
sudo apt-get install zlib1g-devInstall bzip2:
sudo apt-get install libbz2-devInstall lz4:
sudo apt-get install liblz4-devInstall zstandard:
sudo apt-get install libzstd-dev
Linux - CentOS / RHEL
Upgrade your gcc to version to at least 7 in order to get C++17 support
Install gflags:
git clone https://github.com/gflags/gflags.git cd gflags git checkout v2.0 ./configure && make && sudo make installNotice: Once installed, add the include path for gflags to your
CPATHenvironment variable and the lib path toLIBRARY_PATH. If installed with default settings, the include path will be/usr/local/includeand the lib path will be/usr/local/libInstall Snappy:
sudo yum install snappy snappy-develInstall zlib:
sudo yum install zlib zlib-develInstall bzip2:
sudo yum install bzip2 bzip2-develInstall lz4:
sudo yum install lz4-develInstall ASAN (optional for debugging):
sudo yum install libasanInstall zstandard:
With EPEL:
sudo yum install libzstd-develWith CentOS 8:
sudo dnf install libzstd-develFrom source:
wget https://github.com/facebook/zstd/archive/v1.1.3.tar.gz mv v1.1.3.tar.gz zstd-1.1.3.tar.gz tar zxvf zstd-1.1.3.tar.gz cd zstd-1.1.3 make && sudo make install
OS X
Install the latest C++ compiler that supports C++ 17:
Update XCode: Run
xcode-select --install(or install it from XCode App's settting).Install via homebrew:
If you're first time developer in MacOS, you still need to run:
xcode-select --installin your command line.Run
brew tap homebrew/versions; brew install gcc7 --use-llvmto install gcc 7 (or higher).
Windows (Visual Studio 2017 to up)
Read and follow the instructions at CMakeLists.txt
Last updated
Was this helpful?

