This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 53b7e879 Fix prerequisite install commands in README (#1590)
53b7e879 is described below
commit 53b7e879e395653651680f76e29c9e4a63b72f10
Author: Twice <[email protected]>
AuthorDate: Thu Jul 13 12:57:07 2023 +0800
Fix prerequisite install commands in README (#1590)
---
README.md | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index c93ffb9c..055ea323 100644
--- a/README.md
+++ b/README.md
@@ -51,18 +51,22 @@ Users are encouraged to add themselves to the Users page.
Either leave a comment
### Prerequisite
```shell
-# CentOS / RedHat
-sudo yum install -y epel-release
-sudo yum install -y git gcc gcc-c++ make cmake autoconf automake libtool
libstdc++-static python3 which openssl-devel
-
# Ubuntu / Debian
sudo apt update
-sudo apt install -y git gcc g++ make cmake autoconf automake libtool python3
libssl-dev
+sudo apt install -y git build-essential cmake libtool python3 libssl-dev
-# macOS
-brew install autoconf automake libtool cmake openssl
+# CentOS / RedHat
+sudo yum install -y centos-release-scl-rh
+sudo yum install -y git devtoolset-11 autoconf automake libtool
libstdc++-static python3 openssl-devel
+# download and install cmake via https://cmake.org/download
+wget
https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-linux-x86_64.sh
-O cmake.sh
+sudo bash cmake.sh --skip-license --prefix=/usr
+# enable gcc and make in devtoolset-11
+source /opt/rh/devtoolset-11/enable
-# Please force linking the openssl if still can't find after installing openssl
+# macOS
+brew install git cmake autoconf automake libtool openssl
+# please link openssl by force if it still cannot be found after installing
brew link --force openssl
```