/usr/local/bin and /usr/local/share/man is often owned by the root user, at least in my experience. So the make install command would have to be called with sudo. The problem with calling it with sudo is that go throws the following error when the$GOROOT is not on the path:
make: go: Command not found
To make the build process more clean, i have added one more step(would be nice if this could be avoided),
which is just make according to the standard UNIX install process ./configure, make, make install - i think this is acceptable. It simply clear cuts the steps a little better dividing it into build, install, cleanup.
/usr/local/bin
and/usr/local/share/man
is often owned by theroot
user, at least in my experience. So themake install
command would have to be called withsudo
. The problem with calling it withsudo
is thatgo
throws the following error when the$GOROOT
is not on the path:make: go: Command not found
To make the build process more clean, i have added one more step(would be nice if this could be avoided), which is just
make
according to the standard UNIX install process ./configure, make, make install - i think this is acceptable. It simply clear cuts the steps a little better dividing it into build, install, cleanup.