Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gcc version must be greater than or equal to 9 (#2275) #2276

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading