Coder Social home page Coder Social logo

Comments (5)

 avatar commented on June 14, 2024 43

k0fi looks like you have not set the path try setting it in ~./bashrc

export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

add the 2 lines and you should be good.

from fresh.

Gujarats avatar Gujarats commented on June 14, 2024 4

You can fix this using this step :

  1. go to the source fresh and build it : cd $GOPATH/github.com/pilu/fresh and go build in root of the project.
  2. now the fresh file will exist if no error happen, you can place this in your /usr/bin/local/ so that fresh command will exist.

from fresh.

codeblooded avatar codeblooded commented on June 14, 2024

what is your $PATH? Do you see fresh in ~/go/bin?

from fresh.

k0fi avatar k0fi commented on June 14, 2024

Here is the $PATH:

me@pc:~/go/bin$ echo $PATH
/home/me/google-cloud-sdk/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/sbin:/bin

And yes, I see fresh in ~/go/bin

from fresh.

andream16 avatar andream16 commented on June 14, 2024

@JamesRichard-son solution worked for me. Just adding the PATH as export PATH=$PATH:$GOROOT/bin:$GOPATH/bin.

> go env

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/andream16/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build868950532=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

from fresh.

Related Issues (20)

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.