TheYahya / enola

This is Sherlock's sister, Modern shiny CLI tool written with Golang to help you: 🔎 Hunt down social media accounts by username across social networks
MIT License
594 stars 36 forks source link

enola: command not found #18

Open barragh opened 1 year ago

barragh commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 9 months ago

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.