You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We build static binaries: CGO_ENABLED=0 go install -x -installsuffix cgo <pkg>
For some users, we get an error: go install runtime: mkdir /usr/lib/google-golang/pkg/linux_amd64_cgo/: permission denied
As per email with Ian, this can be fixed by making the user run sudo CGO_ENABLED=0 go install -a -installsuffix cgo std, but this is unsatisfying. If go can't install to the global dir, perhaps it should try to install somewhere private to my environment?
The text was updated successfully, but these errors were encountered:
mikioh
changed the title
building static binaries fails with 'go install' if stdlib needs rebuild
cmd/go: building static binaries fails with 'go install' if stdlib needs rebuild
Mar 22, 2015
rsc
changed the title
cmd/go: building static binaries fails with 'go install' if stdlib needs rebuild
cmd/go: add -pkgdir for redirecting installed artifacts
Jun 29, 2015
I plan to add a -pkgdir flag that will be usable when building alternate configurations, so that the standard library can be rebuilt and saved even if it cannot be installed in the standard place.
I plan to add a -pkgdir flag that will be usable when building alternate
configurations, so that the standard library can be rebuilt and saved even
if it cannot be installed in the standard place.
—
Reply to this email directly or view it on GitHub #10210 (comment).
We build static binaries:
CGO_ENABLED=0 go install -x -installsuffix cgo <pkg>
For some users, we get an error:
go install runtime: mkdir /usr/lib/google-golang/pkg/linux_amd64_cgo/: permission denied
As per email with Ian, this can be fixed by making the user run
sudo CGO_ENABLED=0 go install -a -installsuffix cgo std
, but this is unsatisfying. If go can't install to the global dir, perhaps it should try to install somewhere private to my environment?The text was updated successfully, but these errors were encountered: