Skip to content

Commit

Permalink
fix: gcc version must be greater than or equal to 9 (#2275) (#2276)
Browse files Browse the repository at this point in the history
Co-authored-by: liuchengyu <liuchengyu@360.cn>
  • Loading branch information
chengyu-l and liuchengyu authored Jan 5, 2024
1 parent 3cdab0b commit 5615e8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Users can directly download the latest binary version package from [releases](ht

* #### 2.2 Required Library Software

* gcc g++ supporting C++17 (version >= 7)
* gcc g++ supporting C++17 (version >= 9)
* make
* cmake (version >= 3.18)
* autoconf
Expand All @@ -138,12 +138,12 @@ Users can directly download the latest binary version package from [releases](ht

* 2.3.3. Execute compilation

> If the machine's gcc version is less than 7, especially on CentOS6 or CentOS7, you need to upgrade the gcc version first. Execute the following commands:
> If the machine's gcc version is less than 9, especially on CentOS6 or CentOS7, you need to upgrade the gcc version first. Execute the following commands:
>
> ```bash
> sudo yum -y install centos-release-scl
> sudo yum -y install devtoolset-7-gcc devtoolset-7-gcc-c++
> scl enable devtoolset-7 bash
> sudo yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
> scl enable devtoolset-9 bash
> ```
For the initial compilation, it is recommended to use the build script build.sh, which checks if the required software is available on the local machine.
Expand Down
8 changes: 4 additions & 4 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Pika 力求在完全兼容 Redis 协议、 继承 Redis 便捷运维设计的前

* #### 2.2 依赖的库软件

* gcc g++ 支持C++17 (version>=7
* gcc g++ 支持C++17 (version>=9
* make
* cmake(version>=3.18)
* autoconf
Expand All @@ -132,12 +132,12 @@ Pika 力求在完全兼容 Redis 协议、 继承 Redis 便捷运维设计的前

* 2.3.3. 执行编译

> 如果在 CentOS6、CentOS7 等 gcc 版本小于 7 的机器上,需要先升级 gcc 版本,执行如下命令:
> 如果在 CentOS6、CentOS7 等 gcc 版本小于 9 的机器上,需要先升级 gcc 版本,执行如下命令:
>
> ```bash
> sudo yum -y install centos-release-scl
> sudo yum -y install devtoolset-7-gcc devtoolset-7-gcc-c++
> scl enable devtoolset-7 bash
> sudo yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
> scl enable devtoolset-9 bash
> ```

第一次编译时,建议使用构建脚本 `build.sh`,该脚本会检查本机上是否有编译所需的软件。
Expand Down

0 comments on commit 5615e8e

Please sign in to comment.