#52818: proxychains-ng @4.10_0.darwin_15.x86_64 errors when running with nmap or i386 apps -----------------------------+-------------------------------- Reporter: jrespeto | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: elcapitan Port: proxychains-ng | -----------------------------+-------------------------------- Changes (by ryandesign): * cc: openmaintainer@… (removed) * status: new => closed * resolution: => invalid Old description:
Hi,
Was getting this error and saw brew had the same issues with a fix. https://gist.github.com/y3dips/0972e13256f947b0004a
Look like it was not configured with the --fat-binary options
----
'''here is the error im getting.''' proxychains4 nmap -v -sT x.x.x.x [proxychains] config file found: /opt/local/etc/proxychains.conf [proxychains] preloading /opt/local/lib/libproxychains4.dylib dyld: could not load inserted library '/opt/local/lib/libproxychains4.dylib' because no suitable image found. Did find: /opt/local/lib/libproxychains4.dylib: mach-o, but wrong architecture
Trace/BPT trap: 5
----
'''works with x86_64 apps''' [[BR]]
proxychains4 curl -v ifconfig.io [proxychains] config file found: /opt/local/etc/proxychains.conf [proxychains] preloading /opt/local/lib/libproxychains4.dylib [proxychains] DLL init: proxychains-ng 4.10 * Rebuilt URL to: ifconfig.io/ * Trying 224.0.0.1... * TCP_NODELAY set [proxychains] Strict chain ... 127.0.0.1:9091 ... ifconfig.io:80 ... OK * Connected to ifconfig.io (127.0.0.1) port 80 (#0)
GET / HTTP/1.1 Host: ifconfig.io User-Agent: curl/7.51.0 Accept: */*
----
lipo -info /opt/local/lib/libproxychains4.dylib[[BR]]
Non-fat file: /opt/local/lib/libproxychains4.dylib is architecture: x86_64
lipo -info /opt/local/bin/curl[[BR]]
Non-fat file: /opt/local/bin/curl is architecture: x86_64
lipo -info /usr/local/bin/nmap[[BR]]
Non-fat file: /usr/local/bin/nmap is architecture: i386
----
Let me know if you need any more info.
Thank you,
Jonathan
New description: Hi, Was getting this error and saw brew had the same issues with a fix. https://gist.github.com/y3dips/0972e13256f947b0004a Look like it was not configured with the --fat-binary options ---- '''here is the error im getting.''' {{{ proxychains4 nmap -v -sT x.x.x.x [proxychains] config file found: /opt/local/etc/proxychains.conf [proxychains] preloading /opt/local/lib/libproxychains4.dylib dyld: could not load inserted library '/opt/local/lib/libproxychains4.dylib' because no suitable image found. Did find: /opt/local/lib/libproxychains4.dylib: mach-o, but wrong architecture Trace/BPT trap: 5 }}} ---- '''works with x86_64 apps''' {{{ proxychains4 curl -v ifconfig.io [proxychains] config file found: /opt/local/etc/proxychains.conf [proxychains] preloading /opt/local/lib/libproxychains4.dylib [proxychains] DLL init: proxychains-ng 4.10 * Rebuilt URL to: ifconfig.io/ * Trying 224.0.0.1... * TCP_NODELAY set [proxychains] Strict chain ... 127.0.0.1:9091 ... ifconfig.io:80 ... OK * Connected to ifconfig.io (127.0.0.1) port 80 (#0)
GET / HTTP/1.1 Host: ifconfig.io User-Agent: curl/7.51.0 Accept: */*
}}} ---- {{{ lipo -info /opt/local/lib/libproxychains4.dylib Non-fat file: /opt/local/lib/libproxychains4.dylib is architecture: x86_64 lipo -info /opt/local/bin/curl Non-fat file: /opt/local/bin/curl is architecture: x86_64 lipo -info /usr/local/bin/nmap Non-fat file: /usr/local/bin/nmap is architecture: i386 }}} ---- Let me know if you need any more info. Thank you, Jonathan -- Comment: Your problem is that you're trying to use a non-MacPorts 32-bit copy of nmap. If you were to use the MacPorts copy of nmap, you'd get a 64-bit version which would work with the 64-bit proxychains-ng. If you want a universal (32-bit and 64-bit) proxychains-ng you can install it with the universal variant. We don't support installing software in /usr/local while using MacPorts because it can cause problems; see wiki:FAQ#usrlocal -- Ticket URL: <https://trac.macports.org/ticket/52818#comment:1> MacPorts <https://www.macports.org/> Ports system for macOS