eisenxp / macos-golink-wrapper

solution to "syscall.Mprotect panic: permission denied" on macOS Catalina 10.15.x
MIT License
219 stars 53 forks source link

go tool link: fork/exec /usr/local/go/pkg/tool/darwin_amd64/link: no such file or directory #4

Closed haizhohuang closed 2 years ago

haizhohuang commented 2 years ago

when i exchange the link and original_link, go tool link tells me no such file or directory.

Apple M1 Pro macOS 12.3 (21E230) Darwin 21.4.0

what can i do

haizhohuang commented 2 years ago
image
howieyuen commented 2 years ago

work perfectly in go version go1.16.3 darwin/amd64, but in go version go1.17.8 darwin/amd64, go test can work, go build failed, return as follow:

go tool link: fork/exec /usr/local/Cellar/go/1.17.8/libexec/pkg/tool/darwin_amd64/link: no such file or directory

MBP Intel macOS 12.3 (21E230) Darwin 21.4.0

zhijian-pro commented 2 years ago

work perfectly in go version go1.16.3 darwin/amd64, but in go version go1.17.8 darwin/amd64, go test can work, go build failed, return as follow:

go tool link: fork/exec /usr/local/Cellar/go/1.17.8/libexec/pkg/tool/darwin_amd64/link: no such file or directory

MBP Intel macOS 12.3 (21E230) Darwin 21.4.0

go 1.17.8
map intel macos 12.2.1 (21D62) can not work

howieyuen commented 2 years ago

work perfectly in go version go1.16.3 darwin/amd64, but in go version go1.17.8 darwin/amd64, go test can work, go build failed, return as follow:

go tool link: fork/exec /usr/local/Cellar/go/1.17.8/libexec/pkg/tool/darwin_amd64/link: no such file or directory

MBP Intel macOS 12.3 (21E230) Darwin 21.4.0

Mac 12.3 has removed preinstalled python2, so I change to python3, it worked~ Thanks to @eisenxp

haizhohuang commented 2 years ago

work perfectly in go version go1.16.3 darwin/amd64, but in go version go1.17.8 darwin/amd64, go test can work, go build failed, return as follow:

go tool link: fork/exec /usr/local/Cellar/go/1.17.8/libexec/pkg/tool/darwin_amd64/link: no such file or directory

MBP Intel macOS 12.3 (21E230) Darwin 21.4.0

Mac 12.3 has removed preinstalled python2, so I change to python3, it worked~ Thanks to @eisenxp

it's worked! thx