Giter Site home page Giter Site logo

mac 10.3 make failed about go-callvis HOT 6 CLOSED

ondrajz avatar ondrajz commented on August 21, 2024 2
mac 10.3 make failed

from go-callvis.

Comments (6)

yilin0830 avatar yilin0830 commented on August 21, 2024 1

cd go-callvis/ && make

go get -u github.com/golang/dep/cmd/dep
dep ensure -update
make: dep: No such file or directory
make: *** [dep] Error 1

from go-callvis.

ondrajz avatar ondrajz commented on August 21, 2024

No way for me to test this. But I checked the Makefile and the only reason I found it might be is the order of targets.

I have changed the order, try updating the repository and trying again.

from go-callvis.

ondrajz avatar ondrajz commented on August 21, 2024

Okay. I tried doing clean install and found out the problem was due some recent changes in dep tool. Using Godep.* files instead manifest/lock.json. I committed a5f9bf8 to fix this. Try with the latest changes.

from go-callvis.

ondrajz avatar ondrajz commented on August 21, 2024

Did you run:

go get -u github.com/TrueFurby/go-callvis
cd $GOPATH/src/github.com/TrueFurby/go-callvis && make

I just tested clean install and everything works for me. However I have no way to test this on mac.

from go-callvis.

mixeract avatar mixeract commented on August 21, 2024

Still issues on macOS 10.12

$ go get -u github.com/TrueFurby/go-callvis
$ cd $GOPATH/src/github.com/TrueFurby/go-callvis && make
go get -u github.com/golang/dep/cmd/dep
dep ensure -update
make: dep: No such file or directory
make: *** [dep] Error 1

Update: Setting the correct $GOPATH should fix the issue.
On Mac set the following in your ~/.bashrc

# Go path
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin

from go-callvis.

garrettr avatar garrettr commented on August 21, 2024

I have the same issue on macOS 10.12.6. It is due to the lack of $GOPATH/bin in $PATH. The Makefile assumes that it is included when it tries to call dep after installing it.

I think it would be better to prefix all calls to dependencies installed with go get with $GOPATH/bin in the Makefile, since that will work regardless of whether you have added $GOPATH/bin to your $PATH. While that may be a popular modification among Gophers, it is not set by the default installer (which only adds $GOROOT to your $PATH), is not mentioned in the official install docs, and is only suggested as an optional modification for convenience in "How to write Go code".

from go-callvis.

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.