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/cmd/gomobile: "gomobile init" failed due to permission issue #11892

Closed
dbaroncelli opened this issue Jul 27, 2015 · 3 comments
Closed

Comments

@dbaroncelli
Copy link

on Mac OS, running "gomobile init" gives an error:

/Users/daniele/GoDev/bin/gomobile: go install std for android/arm failed: exit status 1 go install runtime: mkdir /usr/local/go/pkg/android_arm/: permission denied

the owner of my Go installation is root with "pkg" directory having 755 permission
if I run "gomobile init" as a non-root user, it doesn't allow to create directories
if I run "sudo gomobile init", it tells me that GOPATH is not defined for the root user

@crawshaw
Copy link
Member

Please try go get -u. A recent change to gomobile means it should no longer try changing your GOROOT

@ianlancetaylor ianlancetaylor added this to the Unreleased milestone Jul 27, 2015
@ianlancetaylor ianlancetaylor changed the title issue with "gomobile init" on MacOS tools/x/mobile: issue with "gomobile init" on MacOS Jul 27, 2015
@hyangah hyangah changed the title tools/x/mobile: issue with "gomobile init" on MacOS x/mobile/cmd/gomobile: "gomobile init" failed due to permission issue Jul 28, 2015
@hyangah
Copy link
Contributor

hyangah commented Jul 28, 2015

@dbaroncelli can you try what crawshaw suggested and update or close this bug? Thanks.

@dbaroncelli
Copy link
Author

@hyangah yes, it seems fixed now

@golang golang locked and limited conversation to collaborators Aug 5, 2016
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

5 participants