51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

记录m1 mac 使用proxychains-ng 报错解决

问题描述

brew安装后,直接运行会如下报错

[proxychains] config file found: /opt/homebrew/etc/proxychains.conf
[proxychains] preloading /opt/homebrew/Cellar/proxychains-ng/4.16/lib/libproxychains4.dylib
dyld[66383]: 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 'arm64e')), '/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 'arm64e'))
dyld[66383]: tried: '/opt/homebrew/Cellar/proxychains-ng/4.16/lib/libproxychains4.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'arm64e')), '/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 'arm64e'))
[1]    66383 abort      proxychains4 curl ip.sb

解决

github上已经有人发过了,照做就行https://github.com/rofl0r/proxychains-ng/issues/481

首先把代码拉下来

git clone https://github.com/rofl0r/proxychains-ng.git
``
然后重新编译即可

./configure --prefix=/opt/homebrew/Cellar/proxychains-ng/4.16 --sysconfdir=/opt/homebrew/etc --fat-binary-m1 make && make install

然后直接重新运行即可

proxychains4 curl ip.sb


赞(0)
未经允许不得转载:工具盒子 » 记录m1 mac 使用proxychains-ng 报错解决