You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/golang-on-azure/deploy.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,66 +6,66 @@ weight: 4
6
6
layout: learningpathall
7
7
---
8
8
9
-
10
9
## Install Golang on Ubuntu Pro 24.04 LTS (Arm64)
11
-
This section guides you through installing the latest Go toolchain on Ubuntu Pro 24.04 LTS (Arm64), configuring the environment, and verifying the setup for benchmarking workloads on Azure Cobalt 100 VMs.
12
10
13
-
1. Download the Golang archive
11
+
This section shows how to install the Go toolchain on Ubuntu Pro 24.04 LTS (Arm64), configure your environment, and verify the setup for benchmarking on Azure Cobalt 100 VMs.
14
12
15
-
Use the following command to download the latest Go release for Linux Arm64 directly from the official Go distribution site:
13
+
## Download the Go archive
16
14
15
+
Use the following command to download the Arm64 build from the official Go distribution (update the version as needed):
There are many enhancements added to Golang version 1.18, that have resulted in up to a 20% increase in performance for Golang workloads on Arm-based servers. Please see [this blog](https://aws.amazon.com/blogs/compute/making-your-go-workloads-up-to-20-faster-with-go-1-18-and-aws-graviton/) for the details.
21
+
There are many enhancements added to Golang version 1.18, that have resulted in up to a 20% increase in performance for Golang workloads on Arm-based servers. For further information, see the AWS blog[Making your go workloads up to 20% faster with Golang 1.18 and AWS Graviton](https://aws.amazon.com/blogs/compute/making-your-go-workloads-up-to-20-faster-with-go-1-18-and-aws-graviton/).
22
22
23
23
The [Arm Ecosystem Dashboard](https://developer.arm.com/ecosystem-dashboard/) also recommends Golang version 1.18 as the minimum recommended on the Arm platforms.
24
24
{{% /notice %}}
25
25
26
-
2. Extract the archive
26
+
##Extract the archive to `/usr/local`
27
27
28
28
Unpack the downloaded archive into `/usr/local`, which is the conventional directory for installing system-wide software on Linux. This ensures the Go toolchain is available for all users and integrates cleanly with the system’s environment.
29
29
30
30
```console
31
31
sudo tar -C /usr/local -xzf ./go1.25.0.linux-arm64.tar.gz
32
32
```
33
33
34
-
3. Add Go to your system PATH
34
+
##Add Go to your shell `PATH`
35
35
36
-
To make the Go toolchain accessible from any directory, add its binary location to your shell’s PATH environment variable. Updating your `.bashrc` file ensures this change persists across sessions:
36
+
To make the Go toolchain accessible from any directory, add its binary location to your shell’s `PATH` environment variable. Updating your `.bashrc` file ensures this change persists across sessions:
After updating .bashrc, reload it so your current shell session picks up the new environment variables without requiring you to log out and back in:
45
45
46
46
```console
47
47
source ~/.bashrc
48
48
```
49
49
50
-
5. Verify Go installation
51
-
52
-
Check if Go is installed correctly and confirm the version:
50
+
## Verify the installation
53
51
52
+
Confirm the installed version:
54
53
```console
55
54
go version
56
55
```
57
56
58
-
You should see output similar to:
59
-
57
+
Expected output:
60
58
```output
61
59
go version go1.25.0 linux/arm64
62
60
```
63
-
6. Check Go environment settings
61
+
## Check Go environment settings
62
+
64
63
65
64
Use the following command to display Go’s environment variables and confirm that key paths (such as GOROOT and GOPATH) are correctly set:
66
65
66
+
67
67
```console
68
-
go env
68
+
go env GOROOT GOPATH GOARCH GOOS
69
69
```
70
70
71
71
You should see output similar to:
@@ -118,4 +118,4 @@ GOVERSION='go1.25.0'
118
118
GOWORK=''
119
119
PKG_CONFIG='pkg-config'
120
120
```
121
-
At this point, the Go installation on Ubuntu Pro 24.04 LTS (Arm64) VM is complete. You are now ready to proceed with Go application development, benchmarking, or performance tuning on Azure Cobalt 100 VMs.
121
+
The Go installation on Ubuntu Pro 24.04 LTS (Arm64) VM is now complete and you are ready to proceed with Go application development, benchmarking, or performance tuning on Azure Cobalt 100 VMs.
0 commit comments