Skip to content
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

macOS Sierra (Version 10.12) Compatibility #777

Closed
mydeadlyvenoms opened this issue Sep 25, 2016 · 11 comments
Closed

macOS Sierra (Version 10.12) Compatibility #777

mydeadlyvenoms opened this issue Sep 25, 2016 · 11 comments
Assignees
Labels
Milestone

Comments

@mydeadlyvenoms
Copy link

mydeadlyvenoms commented Sep 25, 2016

Hi everyone

After updating my OS (OS X El Capitan => macOS Sierra) the following exception appears when I try to start arachni.

  • Before updating to the latest OS everything worked fine.
  • Same outcome when using the nightly build or the official release.
/[...]/arachni-2.0dev-1.0dev/system/gems/gems/ffi-1.9.14/lib/ffi/library.rb:147:in `block in ffi_lib': Could not open library 'libcurl': dlopen(libcurl, 10): image not found. (LoadError)
Could not open library '/usr/lib/libcurl.dylib': dlopen(/usr/lib/libcurl.dylib, 10): Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /usr/local/lib/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO.
Could not open library 'libcurl.so.4': dlopen(libcurl.so.4, 10): image not found.
Could not open library 'libcurl.so.4.dylib': dlopen(libcurl.so.4.dylib, 10): image not found
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ffi-1.9.14/lib/ffi/library.rb:100:in `map'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ffi-1.9.14/lib/ffi/library.rb:100:in `ffi_lib'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ethon-0.9.1/lib/ethon/curls/settings.rb:6:in `<module:Curl>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ethon-0.9.1/lib/ethon/curls/settings.rb:2:in `<module:Ethon>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ethon-0.9.1/lib/ethon/curls/settings.rb:1:in `<top (required)>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ethon-0.9.1/lib/ethon/curl.rb:27:in `require'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ethon-0.9.1/lib/ethon/curl.rb:27:in `<module:Curl>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ethon-0.9.1/lib/ethon/curl.rb:13:in `<module:Ethon>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ethon-0.9.1/lib/ethon/curl.rb:8:in `<top (required)>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ethon-0.9.1/lib/ethon.rb:15:in `require'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/ethon-0.9.1/lib/ethon.rb:15:in `<top (required)>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/typhoeus-1.0.2/lib/typhoeus.rb:2:in `require'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/gems/typhoeus-1.0.2/lib/typhoeus.rb:2:in `<top (required)>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/lib/arachni/http/client.rb:9:in `require'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/lib/arachni/http/client.rb:9:in `<top (required)>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/lib/arachni/http.rb:9:in `require_relative'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/lib/arachni/http.rb:9:in `<top (required)>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/lib/arachni/framework.rb:29:in `require'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/lib/arachni/framework.rb:29:in `<module:Arachni>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/lib/arachni/framework.rb:17:in `<top (required)>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/lib/arachni.rb:103:in `require_relative'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/lib/arachni.rb:103:in `<top (required)>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/ui/cli/framework.rb:9:in `require_relative'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/ui/cli/framework.rb:9:in `<top (required)>'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/bin/arachni:10:in `require_relative'
    from /[...]/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-9d51355a2564/bin/arachni:10:in `<top (required)>'
    from /[...]/arachni-2.0dev-1.0dev/bin/../system/arachni-ui-web/bin/arachni:17:in `load'
    from /[...]/arachni-2.0dev-1.0dev/bin/../system/arachni-ui-web/bin/arachni:17:in `<main>'

Please let me know if I can help to further investigate this issue.

Thank you very much,
Damiano

@Zapotek Zapotek added this to the v1.5 milestone Sep 25, 2016
@Zapotek Zapotek self-assigned this Sep 25, 2016
@Zapotek
Copy link
Member

Zapotek commented Sep 25, 2016

Can you please try substituting the system/environment file with https://gist.github.com/Zapotek/26b1150c4c52eaeb4984ab60e2d4ce1d .

@mydeadlyvenoms
Copy link
Author

Holy moly! That was fast. :-)

I scanned a couple of sites, everything seems to work now.

Thank you very much!

@Zapotek
Copy link
Member

Zapotek commented Sep 25, 2016

No problem, can you do me one more favor and show me what the following prints out?

sw_vers -productVersion

@mydeadlyvenoms
Copy link
Author

Sure, the result is 10.12.

@Zapotek
Copy link
Member

Zapotek commented Sep 25, 2016

Nightlies are up and should now work fine on macOS Sierra.

@Zapotek Zapotek closed this as completed Sep 25, 2016
@mydeadlyvenoms
Copy link
Author

I can confirm that everything works fine on macOS Sierra now.
Nice one, thank you!

@fredzqm
Copy link

fredzqm commented Jul 12, 2017

I am not sure where is the system/environment file.
I am facing the same issue and searched my file directory.
Can you guys help me?
Thanks

@Zapotek
Copy link
Member

Zapotek commented Jul 12, 2017

Can you show me the error? This issue has been resolved.
Also, which macOS version are you using?

@fredzqm
Copy link

fredzqm commented Jul 12, 2017

>>> rake db:create
rake aborted!
LoadError: Could not open library 'c': dlopen(c, 5): image not found.
Could not open library 'libc.dylib': dlopen(libc.dylib, 5): image not found
/Library/Ruby/Gems/2.0.0/gems/ffi-1.9.10/lib/ffi/library.rb:132:in `block in ffi_lib'
/Library/Ruby/Gems/2.0.0/gems/ffi-1.9.10/lib/ffi/library.rb:99:in `map'

I am using macOS Sierra 10.12.5.
Thanks

@Zapotek
Copy link
Member

Zapotek commented Jul 14, 2017

@fredzqm Are you not using the packages?

@fredzqm
Copy link

fredzqm commented Jul 17, 2017

The issue is gone after I switch from rbenv to rvm.
This is so weired.
Thanks though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants