Update installation instructions (#8158)

Summary:
Updated instructions for installing zstd on CentOS and note about clang-format dependency

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8158

Reviewed By: riversand963

Differential Revision: D27598665

Pulled By: ajkr

fbshipit-source-id: e349eeb91147f3163e170cc29c8460b06d739b5b
This commit is contained in:
Sahir Hoda 2021-04-06 16:00:12 -07:00 committed by Facebook GitHub Bot
parent 879357fdb0
commit 6db3af1124

View File

@ -43,6 +43,8 @@ to build a portable binary, add `PORTABLE=1` before your make commands, like thi
command line flags processing. You can compile rocksdb library even command line flags processing. You can compile rocksdb library even
if you don't have gflags installed. if you don't have gflags installed.
* `make check` will also check code formatting, which requires [clang-format](https://clang.llvm.org/docs/ClangFormat.html)
* If you wish to build the RocksJava static target, then cmake is required for building Snappy. * If you wish to build the RocksJava static target, then cmake is required for building Snappy.
## Supported platforms ## Supported platforms
@ -94,12 +96,21 @@ to build a portable binary, add `PORTABLE=1` before your make commands, like thi
sudo yum install libasan sudo yum install libasan
* Install zstandard: * Install zstandard:
* With [EPEL](https://fedoraproject.org/wiki/EPEL):
wget https://github.com/facebook/zstd/archive/v1.1.3.tar.gz sudo yum install libzstd-devel
mv v1.1.3.tar.gz zstd-1.1.3.tar.gz
tar zxvf zstd-1.1.3.tar.gz * With CentOS 8:
cd zstd-1.1.3
make && sudo make install sudo dnf install libzstd-devel
* From 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**: * **OS X**:
* Install latest C++ compiler that supports C++ 11: * Install latest C++ compiler that supports C++ 11: