Skip to content

Instantly share code, notes, and snippets.

@keizo042
Created February 25, 2015 07:18
Show Gist options
  • Save keizo042/8f17e562f9e5743f7482 to your computer and use it in GitHub Desktop.
Save keizo042/8f17e562f9e5743f7482 to your computer and use it in GitHub Desktop.
WORK=/tmp/go-build685671399
mkdir -p $WORK/net/rpc/_obj/
mkdir -p $WORK/net/
cd /usr/lib/go/src/net/rpc
/usr/lib/go/pkg/tool/linux_amd64/6g -o $WORK/net/rpc.a -trimpath $WORK -p net/rpc -complete -D _/usr/lib/go/src/net/rpc -I $WORK -pack ./client.go ./debug.go ./server.go
mkdir -p /usr/lib/go/pkg/linux_amd64/net/
cp $WORK/net/rpc.a /usr/lib/go/pkg/linux_amd64/net/rpc.a
go install net/rpc: open /usr/lib/go/pkg/linux_amd64/net/rpc.a: permission denied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment