-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12b31ae
commit 69c4000
Showing
5 changed files
with
47 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Compile and Running |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
In order to compile CeresDB, some relevant dependencies(including the `Rust` toolchain) should be installed. | ||
|
||
# Dependencies(Ubuntu20.04) | ||
Assuming the development environment is Ubuntu20.04, execute the following command to install the required dependencies: | ||
```shell | ||
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. | ||
|
||
After execution, you need to add environment variables to use the `Rust` toolchain. Basically, just put the following commands into your `~/.bashrc` or `~/.bash_profile`: | ||
```shell | ||
source $HOME/.cargo/env | ||
``` | ||
|
||
# Compile and run | ||
Compile CeresDB by the following command: | ||
``` | ||
cargo build --release | ||
``` | ||
|
||
Then you can run CeresDB using the default configuration file provided in the codebase. | ||
```bash | ||
./target/release/ceresdb-server --config ./docs/example.toml | ||
``` |