diff --git a/README-CN.md b/README-CN.md index effed57336..2ce8d7f345 100644 --- a/README-CN.md +++ b/README-CN.md @@ -47,6 +47,19 @@ apt install git curl gcc g++ libssl-dev pkg-config cmake 需要注意的是,项目的编译对 cmake、gcc、g++ 等实际上都是有版本要求的,如果开发环境使用的是较老的 Linux 发行版的话,一般需要手动安装较高版本的这些依赖。 + +#### 开发依赖(MacOS) +开发环境这里以 MacOS Monterey 为例,执行如下的命令,即可安装好所需的依赖。 + +1. 安装命令行工具: +```shell +xcode-select --install +``` +2. 通过Brew安装cmake: +```shell +brew install cmake +``` + #### Rust Rust 的安装建议通过 [rustup](https://rustup.rs/),安装了 rustup 之后,进入到 CeresDB 项目的时候,会自动根据 rust-toolchain 文件下载指定的 Rust 版本。 diff --git a/README.md b/README.md index 9f7436abaf..45fa1d0afc 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,18 @@ apt install git curl gcc g++ libssl-dev pkg-config cmake It should be noted that the compilation of the project has version requirements for dependencies such as cmake, gcc, g++, etc. If your development environment is an old Linux distribution, it is necessary to manually install these dependencies of a higher version. +#### Dependencies(MacOS) +If the development environment is MacOS, execute the following command to install the required dependencies. + +1. Install command line tools: +```shell +xcode-select --install +``` +2. Install cmake: +```shell +brew install cmake +``` + #### Rust `Rust` can be installed by [rustup](https://rustup.rs/). After installing rustup, when entering the CeresDB project, the specified `Rust` version will be automatically downloaded according to the rust-toolchain file.