Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Install Failed. Mac 10.10.3 with minimal installed. #189

Open
startakovsky opened this issue Aug 11, 2015 · 5 comments
Open

Install Failed. Mac 10.10.3 with minimal installed. #189

startakovsky opened this issue Aug 11, 2015 · 5 comments

Comments

@startakovsky
Copy link

My use case: I usually install all packages on my vm but decided I wanted this here so that I could get the sublime plugin and read docstrings easier. Thus, my mac has minimal stuff installed on it. From the srclib page, I downloaded the mac binary to /usr/local/bin and got the following output:

aidepolcycne:Downloads steven$ src toolchain install-std --skip javascript --skip ruby
2015/08/11 01:16:16 Failed to detect git/hg repository root dir for "."; continuing.
Installing/upgrading standard toolchains...

Skipping installation of Ruby (sourcegraph.com/sourcegraph/srclib-ruby)
Skipping installation of JavaScript (sourcegraph.com/sourcegraph/srclib-javascript)
Go (sourcegraph.com/sourcegraph/srclib-go) ====================================
skipped sourcegraph.com/sourcegraph/srclib-go: no GOPATH set (assuming Go is not installed and you don't want the Go toolchain)
Python (sourcegraph.com/sourcegraph/srclib-python) ============================
skipped sourcegraph.com/sourcegraph/srclib-python: no `go` found in PATH; to install, visit https://golang.org/doc/install
The following toolchains were not installed:
Go (sourcegraph.com/sourcegraph/srclib-go)
Python (sourcegraph.com/sourcegraph/srclib-python)
aidepolcycne:Downloads steven$ 
@dmitshur
Copy link
Contributor

Hi there. You used the install-std command which includes 4 toolchains: Go, Python, Ruby, JavaScript. You used --skip javascript --skip ruby flags so that is a request to install only Go and Python toolchains.

However, both were skipped because the necessary preconditions were not met.

See the relevant error messages:

Go (sourcegraph.com/sourcegraph/srclib-go) ====================================
skipped sourcegraph.com/sourcegraph/srclib-go: no GOPATH set (assuming Go is not installed and you don't want the Go toolchain)
Python (sourcegraph.com/sourcegraph/srclib-python) ============================
skipped sourcegraph.com/sourcegraph/srclib-python: no `go` found in PATH; to install, visit https://golang.org/doc/install

Both toolchains require Go to be installed. You can do that at https://golang.org/doc/install.

@startakovsky
Copy link
Author

aidepolcycne:gocode steven$ src toolchain install-std --skip javascript --skip ruby
2015/08/11 01:46:58 Failed to detect git/hg repository root dir for "."; continuing.
Installing/upgrading standard toolchains...

Skipping installation of Ruby (sourcegraph.com/sourcegraph/srclib-ruby)
Skipping installation of JavaScript (sourcegraph.com/sourcegraph/srclib-javascript)
Python (sourcegraph.com/sourcegraph/srclib-python) ============================
skipped sourcegraph.com/sourcegraph/srclib-python: no `virtualenv` found in PATH; to install, run `[sudo] pip install virtualenv`
Go (sourcegraph.com/sourcegraph/srclib-go) ====================================
Symlinked toolchain sourcegraph.com/sourcegraph/srclib-go into your GOPATH at src/sourcegraph.com/sourcegraph/srclib-go
Downloading or updating Go toolchain in /Users/steven/.srclib/sourcegraph.com/sourcegraph/srclib-go
Running  [src toolchain get -u sourcegraph.com/sourcegraph/srclib-go]
2015/08/11 01:46:58 Failed to detect git/hg repository root dir for "."; continuing.
Building Go toolchain program
Running  [make -C /Users/steven/.srclib/sourcegraph.com/sourcegraph/srclib-go]
go get github.com/tools/godep
package github.com/tools/godep
        imports github.com/tools/godep
        imports github.com/tools/godep: cannot find package "github.com/tools/godep" in any of:
    /usr/local/go/src/github.com/tools/godep (from $GOROOT)
    /Users/steven/Dropbox/myWork/code/shared/packages/gocode/src/github.com/tools/godep (from $GOPATH)
make: *** [install] Error 1
failed to install/upgrade Go (sourcegraph.com/sourcegraph/srclib-go) toolchain: skipped : 
The following toolchains were not installed:
Python (sourcegraph.com/sourcegraph/srclib-python)
Go (sourcegraph.com/sourcegraph/srclib-go)
aidepolcycne:gocode steven$ 

@startakovsky
Copy link
Author

I installed what you wanted and set a gopath. Thank you.

@startakovsky
Copy link
Author

@shurcooL I installed virtualenv for python, and before that ran go get github.com/tools/godep. I'm still getting an error, but it's different. Pasted in the next comment is all my output.

@startakovsky
Copy link
Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants