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
Reinstall Go, making the GOROOT /usr/local/go directory
Clone the torus-cli repo into the normal place in $GOPATH/src/github.com/manifoldco/torus-cli
Run make bootstrap
Run make binary
This is the output I get after step 4.
CGO_ENABLED=0 go build -i -v -o torus -ldflags='-X github.com/manifoldco/torus-cli/config.Version=0.30.1' github.com/manifoldco/torus-cli
go build net: open /usr/local/go/pkg/linux_amd64/net.a: permission denied
make: *** [Makefile:77: binary] Error 1
Now if I play around with the command the make file is running CGO_ENABLED=0 go build -i -v -o torus -ldflags='-X github.com/manifoldco/torus-cli/config.Version=0.30.1' github.com/manifoldco/torus-cli
The error isn't thrown if CGO_ENABLED is set to 1, or if -i is removed.
Not sure if that is useful information, or not.
Also, since this is a permission issue, I tried running sudo make binary. I get this
It seems if I try and build with the permissions I need to write to /usr/local/go, I lose the environment variables pointing to my GOPATH.
Finally, if I install go at ~/go instead of /usr/local/go, then I have write permissions when I build, and don't have any issues.
So while I did find a solution that let me build the code, IDK if it is required to build torus-cli as a user that has write permissions in GOROOT or not.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
make bootstrap
make binary
This is the output I get after step 4.
Now if I play around with the command the make file is running
CGO_ENABLED=0 go build -i -v -o torus -ldflags='-X github.com/manifoldco/torus-cli/config.Version=0.30.1' github.com/manifoldco/torus-cli
The error isn't thrown if CGO_ENABLED is set to 1, or if
-i
is removed.Not sure if that is useful information, or not.
Also, since this is a permission issue, I tried running
sudo make binary
. I get thisIt seems if I try and build with the permissions I need to write to /usr/local/go, I lose the environment variables pointing to my GOPATH.
Finally, if I install go at
~/go
instead of/usr/local/go
, then I have write permissions when I build, and don't have any issues.So while I did find a solution that let me build the code, IDK if it is required to build torus-cli as a user that has write permissions in GOROOT or not.
The text was updated successfully, but these errors were encountered: