Article 53B62 make install command failing with /bin/sh: go: command not found...make: *** [install] Error 127

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 advancelatest?d=yIl2AUoC8zA latest?i=FnyOfDy3vtk:evEpGNLU4Og:F7zBnMy latest?i=FnyOfDy3vtk:evEpGNLU4Og:V_sGLiP latest?d=qj6IDK7rITs latest?i=FnyOfDy3vtk:evEpGNLU4Og:gIN9vFwFnyOfDy3vtk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments