在 Ubuntu 20 04 上安裝 golang

2021-10-10 16:41:55 字數 698 閱讀 2513

wget -c  -o - |

sudo

tar -xz -c /usr/local

調整環境變數

通過將 go 目錄新增到$path環境變數,系統將會知道在**可以找到 go 可執行檔案。

這個可以通過新增下面的行到/etc/profile檔案(系統範圍內安裝)或者$home/.profile檔案(當前使用者安裝):

export path=

$path:/usr/local/go/bin

source ~/.profile
驗證 go 安裝過程

通過列印 go 版本號,驗證安裝過程。

go version
輸出應該像下面這樣:

Ubuntu20 04 安裝總結

這是安裝過程中的網路設定的。gateway 閘道器 對應實驗室的0.0.0.0 nameserver 可以在之前機器上檢視,然後將其填寫進去,也是特定的,10.21.238.12 裝完後只可以訪問區域網內的ip還不能訪問外網,例如baidu.com。與nameserver是對應的 我所安裝的有這兩個...

在ubuntu20 04中安裝ROS系統詳解

在ubuntu20.04 16.04中安裝ros系統詳解 20.04中安裝ros ubuntu16.04 現 error cannot download default sources list from ubuntu安裝ros進行到rosdep update時出現錯誤,如error unable ...

在Ubuntu20 04中搭建Python開發環境

ubuntu20.04 已經預設安裝了 python 3.8.2,我們可以不用安裝了 值得注意的是,python 2 已經退出了歷史的舞台,ubuntu20.04也順便 移除了 python 2 pip3 是乙個用來安裝 python 軟體包的工具。sudo apt get install pyth...