-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing compatible architecture on Apple Silicon & macOS Ventura #481
Comments
the |
My compiling options is |
seems like we can't do anything here for the moment until more intel is gathered... |
Hi there, I found that different program is using different arch, for example, for curl, the default is working. Don't know whether there's a fix, but anyway, it's usable. |
is git from system or from homebrew ? if the latter, as i highly suspect, then probably homebrew is configured for the wrong architecture and what it produces works accidentally via rosetta. |
Thanks @malash , your workaround "arch -x86_64 /opt/homebrew/bin/proxychains4" is also OK for me currently. Hope someone can fix this issue. |
Apple Silicon & macOS Monterey 12.3
|
@kingz40o use --fat-binary-m1 |
is good |
Here we go. # shutdown & long press Power button to recovery mode -> Terminal
csrutil disable
# enable arm64e support
sudo nvram boot-args=-arm64e_preview_abi
# reboot Then, git clone https://github.com/rofl0r/proxychains-ng
cd proxychains-ng
CFLAGS="-arch arm64e" LDFLAGS="-arch arm64e" ./configure --prefix=/usr/local --bindir=/usr/local/bin --libdir=/usr/local/lib --fat-binary-m1
make
$ file ./proxychains4
./proxychains4: Mach-O universal binary with 3 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64] [arm64e:Mach-O 64-bit executable arm64e]
./proxychains4 (for architecture x86_64): Mach-O 64-bit executable x86_64
./proxychains4 (for architecture arm64): Mach-O 64-bit executable arm64
./proxychains4 (for architecture arm64e): Mach-O 64-bit executable arm64e
$ ./proxychains4 -f /opt/homebrew/etc/proxychains.conf ncat 127.0.0.1 22 -v
[proxychains] config file found: /opt/homebrew/etc/proxychains.conf
[proxychains] preloading /xxx/proxychains-ng/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.16-git-10-g199d03d
Ncat: Version 7.93 ( https://nmap.org/ncat )
[proxychains] Strict chain ... 127.0.0.1:1080 ... 127.0.0.1:22 ... OK
Ncat: Connected to 127.0.0.1:22.
SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.1 |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@gusechuisheng what's the point of your comments ? |
我试着用他们的方式编译,直接报错。 |
M1 + macOS 13.3.1 (22E261) + SIP enabled: all seems ok |
It worked |
Works. |
Hello, after I tried to install peng@bogon etc % proxychains4 brew install gedit
[proxychains] config file found: /opt/homebrew/etc/proxychains.conf
[proxychains] preloading /opt/homebrew/Cellar/proxychains-ng/4.16/lib/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.16
dyld[1571]: terminating because inserted dylib '/opt/homebrew/Cellar/proxychains-ng/4.16/lib/libproxychains4.dylib' could not be loaded: tried: '/opt/homebrew/Cellar/proxychains-ng/4.16/ lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need '')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/proxychains-ng /4.16/lib/libproxychains4.dylib' (no such file), '/opt/homebrew/Cellar/proxychains-ng/4.16/lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64 ', need ''))
dyld[1571]: tried: '/opt/homebrew/Cellar/proxychains-ng/4.16/lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need '')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/proxychains-ng/4.16/lib/libproxychains4.dylib' (no such file), '/opt/homebrew/Cellar/proxychains-ng/4.16/ lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need ''))
My system information is: Sonoma-14.1.2, M2-max |
@pengweizhong: the error you're getting is precisely what this thread is about and solutions are presented. as far as "user-friendly" is concerned, the mess presented to us by OS X makes it almost impossible, and proxychains-ng isn't meant to be used by "newbies" anyway - see the big fat warning on top of the README. |
I used this method to install Proxychains on my After my search and attempt, I finally used the method here to successfully install Proxychains on my computer🎉. |
did you also try the new --fat-binary-m2 switch ? |
So was the
I find it interesting that the architecture shows arm64 when I could have sworn it would be arm64e for all Apple Silicon Macs. They are running the latest Ventura version on an original M1 Mac (SIP disabled) |
looks definitely like a bug to me. whether it is fixed these days is unknown. |
Still not fixed on Apple Silicon |
After upgrading my MBP to macOS Ventura 13.0,
proxychains4
fails to run and throws this erorr:It's weird that error message said
have 'x86_64,arm64e', need ''
, I have no idea whyarm64e
doesn't work again (see #453 ). Myproxychain4
isx86_64 + arm64
andlibproxychains4.dylib
isx86_64 + arm64e
.A temprary solution to bypass this issue is use
arch -x86_64
, likearch -x86_64 /opt/homebrew/bin/proxychains4 curl -I https://www.google.com
could normally run:cc @rofl0r
The text was updated successfully, but these errors were encountered: