Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/mobile: gomobile init not working #15484

Closed
sxt9 opened this issue Apr 28, 2016 · 2 comments
Closed

x/mobile: gomobile init not working #15484

sxt9 opened this issue Apr 28, 2016 · 2 comments

Comments

@sxt9
Copy link

sxt9 commented Apr 28, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    1.6.2
  2. What operating system and processor architecture are you using (go env)?
    Windows 10
    amd64
  3. What did you do?
    When I try to install gomobile it downloads after (go get golang.org/x/mobile/cmd/gomobile)
    then when i attempt to use the command (gomobile init) it says 'gomobile' is not recognized as an internal or external command,
    operable program or batch file.
  4. What did you expect to see?
    I expected it to initialize so i could use it
  5. What did you see instead?
    'gomobile' is not recognized as an internal or external command,
    operable program or batch file.
@dskinner
Copy link
Member

dskinner commented Apr 28, 2016

You need to add $GOPATH/bin to system path, not $GOPATH. If you used the MSI installer as described in the Getting Started guide, this should have been done automatically for you. Apologies, you still have to set this manually on windows.

@rakyll rakyll changed the title Gomobile | gomobile init | not working x/mobile: gomobile init not working Apr 29, 2016
@rakyll rakyll added this to the Unreleased milestone Apr 29, 2016
@rakyll
Copy link
Contributor

rakyll commented Apr 29, 2016

Make sure you have added $GOPATH/bin in your PATH.

@rakyll rakyll closed this as completed Apr 29, 2016
@golang golang locked and limited conversation to collaborators Apr 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants