我在 CentOS 7.9 虛擬機(jī)上,我正在嘗試按照此過程安裝 Go(rif. https://computingforgeeks.com/install-go-golang-on-centos-rhel-linux/)sudo yum -y install wgetwget https://go.dev/dl/go1.19.3.src.tar.gzsha256sum go1.19.3.src.tar.gzsudo tar -C /usr/local -xzf go*.src.tar.gz然后我添加了export PATH=$PATH:/usr/local/go/bin在$HOME/.profile/etc/配置文件最后source $HOME/.profilesource /etc/profile但是當(dāng)我嘗試命令時go version結(jié)果是-bash: go: command not found如圖所示,我看到bin路徑下沒有目錄/usr/local/go
Go:/usr/local/go/bin 在 CentOS 7.9 上不存在
月關(guān)寶盒
2023-03-15 15:22:18