How can I use go using the standard installation instructions in bash? What do I do wrong?
I followed the installation instructions for go on Linux. Therefore I downloaded the go tar.gz, untared it to /usr/local
and added export PATH=$PATH:/usr/local/go/bin
to /etc/bash.bashrc
and made a source /etc/bash.bashrc
.
However, go version
does not give the proper result. See:
user@machine:~$ which go
/usr/local/go/bin/go
user@machine:~$ go version
user@machine:~$ /usr/local/go/bin/go version
go version go1.11.5 linux/amd64
user@machine:~$ type -a go
go is a function.
go ()
{
eval dir=\$$1;
cd "$dir"
}
go is /usr/local/go/bin/go