Code Monkey home page Code Monkey logo

Comments (3)

TheYahya avatar TheYahya commented on June 14, 2024

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

from enola.

arabijo avatar arabijo commented on June 14, 2024

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"

from enola.

TheYahya avatar TheYahya commented on June 14, 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.

from enola.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.