Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enola: command not found #18

Open
barragh opened this issue Mar 5, 2023 · 3 comments
Open

enola: command not found #18

barragh opened this issue Mar 5, 2023 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@barragh
Copy link

barragh commented Mar 5, 2023

Hi,
I've installed it as per instructions but whenever I type in 'enola examplename' I just get 'enola: command not found'. I am using the Ubuntu Linux subsystem for Windows 11 and other things have worked fine in the past but this just gives me that. Is it because I'm using the subsystem or is it something else?

@TheYahya
Copy link
Owner

TheYahya commented Mar 5, 2023

Hello @barragh,

  1. Make sure the GOPATH is set up properly. echo $GOPATH should show you something like /home/yahya/go. If it's not. you can add it to you shell by export GOPATH="$HOME/go" to your .bashrc or .zshrc if using zshell and similar for any other shell you're using.
  2. You should also have something similar to /home/yahya/go/bin in your PATH. So when you run echo $PATH you should see it somewhere in your path. if it's not there; you need to add PATH="$GOPATH/bin:$PATH" also to your .bashrc.
  3. After updating your .bashrc file make sure that you're using source .bashrc command to actually use the updated file or open a new terminal.

If it still didn't worked. give the result of following commands so I can investigate more:

  1. go version
  2. go env

@arabijo
Copy link

arabijo commented Mar 13, 2023

Hi. Ive got the same problem(

  1. go version go1.20.2 darwin/amd64
  2. O111MODULE=""
    GOARCH="amd64"
    GOBIN=""
    GOCACHE="/Users/**/Library/Caches/go-build"
    GOENV="/Users//Library/Application Support/go/env"
    GOEXE=""
    GOEXPERIMENT=""
    GOFLAGS=""
    GOHOSTARCH="amd64"
    GOHOSTOS="darwin"
    GOINSECURE=""
    GOMODCACHE="/Users/
    /go/pkg/mod"
    GONOPROXY=""
    GONOSUMDB=""
    GOOS="darwin"
    GOPATH="/Users/
    /go"
    GOPRIVATE=""
    GOPROXY="https://proxy.golang.org,direct"
    GOROOT="/usr/local/Cellar/go/1.20.2/libexec"
    GOSUMDB="sum.golang.org"
    GOTMPDIR=""
    GOTOOLDIR="/usr/local/Cellar/go/1.20.2/libexec/pkg/tool/darwin_amd64"
    GOVCS=""
    GOVERSION="go1.20.2"
    GCCGO="gccgo"
    GOAMD64="v1"
    AR="ar"
    CC="clang"
    CXX="clang++"
    CGO_ENABLED="1"
    GOMOD="/Users/*******/enola/go.mod"
    GOWORK=""
    CGO_CFLAGS="-O2 -g"
    CGO_CPPFLAGS=""
    CGO_CXXFLAGS="-O2 -g"
    CGO_FFLAGS="-O2 -g"
    CGO_LDFLAGS="-O2 -g"
    PKG_CONFIG="pkg-config"
    GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/kc/jhjg4n6x5vg_7xjgmwqprky40000gn/T/go-build3736594121=/tmp/go-build -gno-record-gcc-switches -fno-common"

@TheYahya TheYahya added bug Something isn't working help wanted Extra attention is needed labels Aug 19, 2023
@TheYahya
Copy link
Owner

TheYahya commented Jan 5, 2024

Do you have $GOPATH/bin in your $PATH? If you run echo $PATH. You should see something /home/{your username}/go/bin in there, if not, add that to your $PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants