Skip to content

Commit

Permalink
Merged main into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mario4tier committed Oct 16, 2024
2 parents 698259f + a9aa0f7 commit dcf2435
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
26 changes: 5 additions & 21 deletions docs/src/how-to/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,22 @@ order: 1

## Requirements
**Supported operating systems**
* Linux >=20.04 (Arch and Ubuntu tested)
* Linux Ubuntu >=20.04 recommended (works also on Arch Linux)
* macOS Monterey or later (Intel and Apple CPU)
* Windows 10/11 with WSL2


**Prerequisites (Mandatory)**
**Prerequisites**
- [cURL](https://curl.se)
- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)


**Prerequisites (Optional)**
Only if you disable precompiled binaries:
- [Mysten Labs build prerequisites](https://docs.sui.io/build/install#prerequisites).

Only if you use Typescript related features:
- [Node.js](https://nodejs.org/en/download/package-manager) (>=20)
- [pnpm](https://pnpm.io/installation) (>=9)

Note: Suibase nicely informs you of missing dependencies as you start to interact with a feature.


## Installation Steps
```shell
$ cd ~
$ git clone https://github.com/chainmovers/suibase.git
$ cd suibase
$ ./install
$ ~/suibase/install
```
Suibase is not intrusive on your system:

- All its files and workdirs are in ```~/suibase``` and ```~/.local/bin```
- Requires ```~/.local/bin``` to be in the [PATH](https://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path) env variable (you might have to add it manually).
- All Suibase files are created in ```~/suibase``` and ```~/.local/bin```
- ```~/.local/bin``` must be listed in the PATH env variable ( on some setup you may have to [add it manually](https://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path) ).



Expand Down
6 changes: 3 additions & 3 deletions scripts/common/__globals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ exit_if_rust_build_deps_missing() {
is_installed cmake || setup_error "Need to install cmake. See https://docs.sui.io/build/install#prerequisites"
is_installed rustc || setup_error "Need to install rust. See https://docs.sui.io/build/install#prerequisites"
is_installed cargo || setup_error "Need to install cargo. See https://docs.sui.io/build/install#prerequisites"

# Verify Rust is recent enough.
version_greater_equal "$(rustc --version)" "$MIN_RUST_VERSION" || setup_error "Upgrade rust to a more recent version"
}
export -f exit_if_rust_build_deps_missing

Expand Down Expand Up @@ -800,9 +803,6 @@ build_sui_repo_branch() {
is_installed git || setup_error "Need to install git. See https://docs.sui.io/build/install#prerequisites"
is_installed lsof || setup_error "Need to install 'lsof'."

# Verify Rust is recent enough.
version_greater_equal "$(rustc --version)" "$MIN_RUST_VERSION" || setup_error "Upgrade rust to a more recent version"

local _IS_SET_SUI_REPO="false"
if is_sui_repo_dir_override; then
_IS_SET_SUI_REPO="true"
Expand Down

0 comments on commit dcf2435

Please sign in to comment.