make install command failing with /bin/sh: go: command not found...make: *** [install] Error 127
by paulas_01 from LinuxQuestions.org on (#53B62)
I am new to Linux so clear basic responses would be great.
I am trying to complete these tasks:
git clone -b v0.15.0 https://github.com/operator-framework/operator-sdk
cd operator-sdk
make install
When I run make install, I am getting:
/bin/sh: go: command not found
make: *** [install] Error 127
The instructions did mention that you may need to add $GOPATH/bin to your path to run the operator-sdk command line tool
So then I ran this:
export PATH=${PATH}:${GOPATH}/bin
and ran make install again, same error
I then updated my .bash_profile file (I googled this) to look like below and I ran make install again after - same error....
[root@roadway-inf operator-sdk]# vi ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:${GOPATH}/bin
export PATH
export KUBECONFIG=/root/auth/kubeconfig
....
Finally when I ran echo $PATH and echo $GOPATH, GOPATH doesn't seem to be set - some help please :)
[root@roadway-inf operator-sdk]# echo $PATH
/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/bin:/bin:/bin:/bin
[root@roadway-inf operator-sdk]# echo $GOPATH
[root@roadway-inf operator-sdk]#
Many thanks in advance


I am trying to complete these tasks:
git clone -b v0.15.0 https://github.com/operator-framework/operator-sdk
cd operator-sdk
make install
When I run make install, I am getting:
/bin/sh: go: command not found
make: *** [install] Error 127
The instructions did mention that you may need to add $GOPATH/bin to your path to run the operator-sdk command line tool
So then I ran this:
export PATH=${PATH}:${GOPATH}/bin
and ran make install again, same error
I then updated my .bash_profile file (I googled this) to look like below and I ran make install again after - same error....
[root@roadway-inf operator-sdk]# vi ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:${GOPATH}/bin
export PATH
export KUBECONFIG=/root/auth/kubeconfig
....
Finally when I ran echo $PATH and echo $GOPATH, GOPATH doesn't seem to be set - some help please :)
[root@roadway-inf operator-sdk]# echo $PATH
/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/bin:/bin:/bin:/bin
[root@roadway-inf operator-sdk]# echo $GOPATH
[root@roadway-inf operator-sdk]#
Many thanks in advance