Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12244

command 'go' not found, even Go is already install in my Ubuntu 20.04 VM [closed]

$
0
0

I'm facing some weird issue while trying to run go command in Linux terminal.

I installed GO and set my GOPATH and GOROOT in ~/.profile and after that, I updated the current session using $source ~/.profile. I'm able to access go commands (i.e. go version, go env) in that session, but when I close that session and try to open terminal again and running go command then it is showing that command 'go' not found

But at the same time, I'm able to access go commands in VSCode terminal session. I got confused VSCode using the updated session or something I didn't get about the Linux terminal session.

Thanks in advance for your help.


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>