RocksDB provides comprehensive support for Linux distributions, with optimized builds for various package managers and architectures.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/facebook/rocksdb/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Compiler Requirements
RocksDB requires a modern C++ compiler with C++20 support:- GCC: Version 11 or higher
- Clang: Version 10 or higher
Recommended Dependencies
While RocksDB can compile without any dependencies, installing compression libraries significantly improves performance:- zlib: General-purpose compression
- bzip2: High compression ratio
- lz4: Extremely fast compression
- snappy: Fast compression optimized for speed
- zstandard: Fast real-time compression algorithm
- gflags: Required for command-line tools
- clang-format: Required for code formatting checks
Ubuntu / Debian
CentOS / RHEL / Fedora
Installing zstandard on older systems
If zstandard is not available through your package manager:Build Options
Portable Build
By default, RocksDB optimizes for your specific CPU (-march=native). To build a binary compatible with different architectures:
Debug vs Release
Production builds: Always use
make static_lib or make shared_lib (release mode).Development builds: Use make all or make check (debug mode).Verification
Verify your installation:Next Steps
Getting Started
Learn the basics of using RocksDB
API Reference
Explore the complete API documentation