Comments (5)
You probably need to set the GOPATH
environment variable. Go will manage all its libraries, source code, and binaries below that path. Think of it as a workspace. E.g. if you set GOPATH=$HOME/gocode
, go will install binaries to $HOME/gocode/bin
, source code below $HOME/gocode/src
and so on. See here for details.
HTH.
from iterm2-imagetools.
It didn't help. I've set $GOPATH. Following the installation instruction, go looks for the package in the cellar, not in the internet. I'm still lost. My iterm2 already had imgcat (by default?) but no imgls. That's why I try to install it from sources. Which doesn't work somehow.
➜ ~ echo $GOPATH
/Users/myself/gocode
➜ ~ go install github.com/olivere/iterm2-imagetools/cmd/imgls
can't load package: package github.com/olivere/iterm2-imagetools/cmd/imgls: cannot find package "github.com/olivere/iterm2-imagetools/cmd/imgls" in any of:
/usr/local/Cellar/go/1.6.2/libexec/src/github.com/olivere/iterm2-imagetools/cmd/imgls (from $GOROOT)
/Users/myself/gocode/src/github.com/olivere/iterm2-imagetools/cmd/imgls (from $GOPATH)
from iterm2-imagetools.
I'm sorry. Try:
// Download, compile, and install imgls into $GOPATH/bin
$ go get -u github.com/olivere/iterm2-imagetools/cmd/imgls
// or: to install all binaries the package provides into $GOPATH/bin (`imgls` and `imgcat`)
$ go get -u github.com/olivere/iterm2-imagetools/cmd/...
I will fix the README. I think this blog post summarizes it well.
Sorry for the confusion.
from iterm2-imagetools.
Thanks! The first command worked like a charm!
from iterm2-imagetools.
replace install
with get -u
from iterm2-imagetools.
Related Issues (6)
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 iterm2-imagetools.