Installing Go
To compile BoringSSL, the Go version must be 1.13 or later.
- Download and decompress the Go installation package.
1 2
wget https://dl.google.com/go/go1.14.2.linux-arm64.tar.gz tar -zxf go1.14.2.linux-arm64.tar.gz
- Create an installation path and perform deployment.
1 2
mkdir -p /opt/install mv go /opt/install
- Set environment variables.
- Open the /etc/profile file.
1vi /etc/profile - Press i to enter the insert mode and add the following content to the end of the file:
1 2
export GO_HOME=/opt/install/go export PATH=$GO_HOME/bin:$PATH
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the /etc/profile file.
- Make the environment variables take effect.
1source /etc/profile
- Check whether Go is successfully installed.
1go versionThe installation is successful if information similar to the following is displayed:
