Comments (3)
Hello @barragh,
- 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 byexport GOPATH="$HOME/go"
to your.bashrc
or.zshrc
if using zshell and similar for any other shell you're using. - You should also have something similar to
/home/yahya/go/bin
in yourPATH
. So when you runecho $PATH
you should see it somewhere in your path. if it's not there; you need to addPATH="$GOPATH/bin:$PATH"
also to your.bashrc
. - After updating your
.bashrc
file make sure that you're usingsource .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:
go version
go env
from enola.
Hi. Ive got the same problem(
- go version go1.20.2 darwin/amd64
- 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"
from enola.
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
.
from enola.
Related Issues (12)
- False positives HOT 6
- Top
- Can't load package HOT 1
- possibility to return available usernames? HOT 1
- False negative found HOT 2
- site flag is not working properly
- [Feature Request] Save output to file HOT 2
- Command Not Found HOT 3
- Parameter incorrect HOT 1
- Demo gif speed HOT 2
- Go module HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enola.