@@ -5,6 +5,8 @@ sidebar_position: 1
5
5
slug : /install/system-setup
6
6
---
7
7
8
+ import Tabs from '@theme/Tabs ';
9
+ import TabItem from '@theme/TabItem ';
8
10
9
11
# Overview
10
12
@@ -22,114 +24,118 @@ Before you can install and interact with spawn, you must have the following core
22
24
23
25
If you do not have these components installed, follow the instructions below to install them.
24
26
25
- ## Windows
26
-
27
- ``` bash
28
- # Install WSL in powershell
29
- wsl --install
30
- Restart-Computer
31
-
32
- # Setup WSL Ubuntu Image
33
- wsl.exe --install Ubuntu-24.04
34
-
35
- # Open wsl instance
36
- wsl
37
-
38
- # update and add snap if not already installed
39
- sudo apt update && sudo apt install snapd
40
-
41
- # Install Go (Snap)
42
- sudo snap install go --channel=1.23/stable --classic
43
-
44
- # Install Base
45
- sudo apt install make gcc git jq wget
46
-
47
- # Install github-cli
48
- sudo snap install gh
49
-
50
- # Install docker
51
- https://docs.docker.com/desktop/wsl/# turn-on-docker-desktop-wsl-2
52
- # or snap:
53
- sudo snap install docker
54
-
55
- # Fix versioning for interaction of commands
56
- sudo chmod 666 /var/run/docker.sock
57
-
58
- # Setup base git config
59
- git config --global user.email
" [email protected] "
60
- git config --global user.name " Your Name"
61
- ```
62
-
63
-
64
- ## MacOS
65
-
66
- ``` bash
67
- # Base
68
- brew install make
69
- brew install gcc
70
- brew install wget
71
- brew install jq
72
-
73
- # Github CLI - https://github.com/cli/cli
74
- brew install gh
75
- gh auth login
76
-
77
- # Golang
78
- brew install go
79
-
80
- # Docker
81
- brew install --cask docker
82
- open -a Docker # start docker desktop
83
- # settings -> General -> Start Docker Desktop when you sign in to your computer
84
- # Apply & Restart
85
-
86
- # Setup base git config
87
- git config --global user.email
" [email protected] "
88
- git config --global user.name " Your Name"
89
- ```
90
-
91
-
92
- ## Linux (Ubuntu)
93
-
94
- ``` bash
95
- # Base
96
- sudo apt install make gcc git jq wget
97
-
98
- # (optional) Github CLI - https://github.com/cli/cli
99
- curl -sS https://webi.sh/gh | sh
100
- gh auth login
101
-
102
- # Golang
103
- GO_VERSION=1.23.0
104
- wget https://go.dev/dl/go$GO_VERSION .linux-amd64.tar.gz
105
- sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go$GO_VERSION .linux-amd64.tar.gz
106
-
107
- # Docker
108
- sudo apt -y install docker.io
109
-
110
- # Setup base git config
111
- git config --global user.email
" [email protected] "
112
- git config --global user.name " Your Name"
113
- ```
114
-
115
- ## CosmWasm
116
-
117
- Some tutorials require CosmWasm (Rust smart contracts) setup. This section is option, unless a tutorial is CosmWasm focused.
118
- CosmWasm requires [ Rust] ( https://www.rust-lang.org/ ) . You must have this installed as the contract will be built locally.
119
-
120
- ``` bash
121
- # Install rust - https://www.rust-lang.org/tools/install
122
- curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
123
-
124
- # Update shell env
125
- source $HOME /.cargo/env
126
-
127
- # or Update if you have it
128
- rustup update
129
-
130
- # Install other dependencies
131
- rustup target add wasm32-unknown-unknown
132
-
133
- cargo install cargo-generate --features vendored-openssl
134
- cargo install cargo-run-script
135
- ```
27
+ ## Install Dependencies
28
+
29
+ <Tabs defaultValue =" macos " >
30
+ <TabItem value =" macos " label =" MacOS " >
31
+ ``` bash
32
+ # Base
33
+ brew install make
34
+ brew install gcc
35
+ brew install wget
36
+ brew install jq
37
+
38
+ # Github CLI - https://github.com/cli/cli
39
+ brew install gh
40
+ gh auth login
41
+
42
+ # Golang
43
+ brew install go
44
+
45
+ # Docker
46
+ brew install --cask docker
47
+ open -a Docker # start docker desktop
48
+ # settings -> General -> Start Docker Desktop when you sign in to your computer
49
+ # Apply & Restart
50
+
51
+ # Setup base git config
52
+ git config --global user.email
" [email protected] "
53
+ git config --global user.name " Your Name"
54
+ ```
55
+ </TabItem >
56
+
57
+ <TabItem value =" windows " label =" Windows (WSL) " default >
58
+ ``` bash
59
+ # Install WSL in powershell
60
+ wsl --install
61
+ Restart-Computer
62
+
63
+ # Setup WSL Ubuntu Image
64
+ wsl.exe --install Ubuntu-24.04
65
+
66
+ # Open wsl instance
67
+ wsl
68
+
69
+ # update and add snap if not already installed
70
+ sudo apt update && sudo apt install snapd
71
+
72
+ # Install Go (Snap)
73
+ sudo snap install go --channel=1.23/stable --classic
74
+
75
+ # Install Base
76
+ sudo apt install make gcc git jq wget
77
+
78
+ # Install github-cli
79
+ sudo snap install gh
80
+
81
+ # Install docker
82
+ https://docs.docker.com/desktop/wsl/# turn-on-docker-desktop-wsl-2
83
+ # or snap:
84
+ sudo snap install docker
85
+
86
+ # Fix versioning for interaction of commands
87
+ sudo chmod 666 /var/run/docker.sock
88
+
89
+ # Setup base git config
90
+ git config --global user.email
" [email protected] "
91
+ git config --global user.name " Your Name"
92
+ ```
93
+ </TabItem >
94
+
95
+ <TabItem value =" ubuntu-linux " label =" Linux (Ubuntu) " >
96
+ <!-- markdown-link-check-disable -->
97
+ ``` bash
98
+ # Base
99
+ sudo apt install make gcc git jq wget
100
+
101
+ # (optional) Github CLI - https://github.com/cli/cli
102
+ curl -sS https://webi.sh/gh | sh
103
+ gh auth login
104
+
105
+ # Golang
106
+ GO_VERSION=1.23.0
107
+ wget https://go.dev/dl/go$GO_VERSION .linux-amd64.tar.gz
108
+ sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go$GO_VERSION .linux-amd64.tar.gz
109
+
110
+ # Docker
111
+ sudo apt -y install docker.io
112
+
113
+ # Setup base git config
114
+ git config --global user.email
" [email protected] "
115
+ git config --global user.name " Your Name"
116
+ ```
117
+ </TabItem >
118
+ <!-- markdown-link-check-enable -->
119
+
120
+ <TabItem value =" cosmwasm-rust " label =" CosmWasm (Rust) " >
121
+ Some tutorials require CosmWasm (Rust smart contracts) setup. This section is option, unless a tutorial is CosmWasm focused.
122
+
123
+ CosmWasm requires [ Rust] ( https://www.rust-lang.org/ ) . You must have this installed as the contract will be built locally.
124
+ ``` bash
125
+ # Install rust - https://www.rust-lang.org/tools/install
126
+ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
127
+
128
+ # Update shell env
129
+ source $HOME /.cargo/env
130
+
131
+ # or Update if you have it
132
+ rustup update
133
+
134
+ # Install other dependencies
135
+ rustup target add wasm32-unknown-unknown
136
+
137
+ cargo install cargo-generate --features vendored-openssl
138
+ cargo install cargo-run-script
139
+ ```
140
+ </TabItem >
141
+ </Tabs >
0 commit comments