Skip to content

Commit 463cd58

Browse files
committed
Add instructions for installing Go on Debian
The version of Go that ships with the version of Debian used by vagrant-spk is too old to build Sandstorm. These updated instructions explain how to get a newer version Go for building Sandstorm.
1 parent dd16b1b commit 463cd58

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docs/install.md

+22-3
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Please install the following:
144144
* `curl`
145145
* `python3`
146146
* `zlib1g-dev`
147-
* `golang-go`
147+
* `golang-go` 1.19 or later
148148
* `cmake`
149149
* discount (markdown parser)
150150
* [Meteor](http://meteor.com)
@@ -153,10 +153,29 @@ On Debian or Ubuntu, you should be able to get all these with:
153153

154154
sudo apt-get install build-essential libcap-dev xz-utils zip \
155155
unzip strace curl discount git python3 zlib1g-dev \
156-
golang-go cmake strace flex bison locales
156+
cmake flex bison locales
157+
GO_VERSION=$(curl 'https://go.dev/VERSION?m=text')
158+
curl -L "https://go.dev/dl/$GO_VERSION.linux-amd64.tar.gz" -o go.tar.gz \
159+
&& sudo tar -C /usr/local -xvf go.tar.gz \
160+
&& rm go.tar.gz
157161
curl https://install.meteor.com/ | sh
158162

159-
On Fedora 34 you should be able to get them with:
163+
When you download and install Go on Debian or Ubuntu using the instructions above, you should
164+
add the Go `bin` directory to your path:
165+
166+
export PATH="/usr/local/go/bin:$PATH"
167+
168+
To add the Go `bin` directory to your path permanently, add it to your `~/.profile` file:
169+
170+
<< EOF cat >> ~/.profile
171+
172+
# Include Go in the PATH
173+
if [ -d /usr/local/go/bin ]; then
174+
PATH="/usr/local/go/bin:\$PATH"
175+
fi
176+
EOF
177+
178+
On Fedora 34 you should be able to get the prerequisites with:
160179

161180
sudo dnf install make libcap-devel libstdc++-devel libstdc++-static \
162181
glibc-headers glibc-static glibc-locale-source gcc-c++ xz zip \

0 commit comments

Comments
 (0)