eisenxp / macos-golink-wrapper Goto Github PK
View Code? Open in Web Editor NEWsolution to "syscall.Mprotect panic: permission denied" on macOS Catalina 10.15.x
License: MIT License
solution to "syscall.Mprotect panic: permission denied" on macOS Catalina 10.15.x
License: MIT License
There is no "tool" file in "opt/go/pkg", what should I do ?
It appears that "printf '\x07' | dd of=service.test bs=1 seek=160 count=1 conv=notrunc" is not in effect
I build _test.go to binary file, and I check the file's md5. 3bbfd72f76f30c79c94c0c2709f58391
After I execute "printf '\x07' | dd of=service.test bs=1 seek=160 count=1 conv=notrunc", the file's md5 still is 3bbfd72f76f30c79c94c0c2709f58391
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
Golang took a long time to compile and finally failed
Traceback (most recent call last):
File "/usr/local/go/pkg/tool/darwin_arm64/original_link", line 14, in
output = subprocess.check_output([os.path.dirname(file) + '/' + original_link_file] + sys.argv[1:], cwd=os.getcwd())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 493, in run
with Popen(*popenargs, **kwargs) as process:
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1639, in _execute_child
self.pid = _posixsubprocess.fork_exec(
BlockingIOError: [Errno 35] Resource temporarily unavailable
try to use
#!/usr/bin/env python
in beginning of file, and print(output.replace(original_link_file, 'link')) but still cannot exec, error is:
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/1.17.9/libexec/pkg/tool/darwin_amd64/link", line 20, in
print(output.replace(original_link_file, 'link'))
TypeError: a bytes-like object is required, not 'str'
panic: permission denied
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.