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

Install fails on El Capitan with dyld: lazy symbol binding failed: Symbol not found: _clock_gettime #323

Closed
thebarty opened this issue Dec 29, 2016 · 3 comments

Comments

@thebarty
Copy link

Hi guys,

I am trying to get mailcatcher running on OSX 10.11.6 (El Capitan).

Unfortunatly I am getting the following error:

mailcatcher
/usr/local/lib/ruby/gems/2.4.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:1226: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:1226: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:1226: warning: constant ::Fixnum is deprecated
/usr/local/lib/ruby/gems/2.4.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:1226: warning: constant ::Fixnum is deprecated
Starting MailCatcher
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from: /usr/local/lib/ruby/gems/2.4.0/gems/eventmachine-1.0.9.1/lib/rubyeventmachine.bundle (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime
  Referenced from: /usr/local/lib/ruby/gems/2.4.0/gems/eventmachine-1.0.9.1/lib/rubyeventmachine.bundle (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap: 5

I did a

sudo gem install mailcatcher

Any ideas how to get this running?

@matthewsmith-io
Copy link

I got this same error (also on OSX 10.11.6) and eventually got it running.

A Stack Overflow thread said to run xcode-select --install which didn't work.

Reinstalling eventmachine worked for me:

gem uninstall eventmachine
gem install eventmachine
gem install eventmachine -v '1.0.9.1'

I'm not sure if xcode-select --install had anything to do with it.

@sj26
Copy link
Owner

sj26 commented Apr 4, 2017

@thebarty please re-open or file another issue if the latest version of mailcatcher and the above fix aren't working for you.

@sj26 sj26 closed this as completed Apr 4, 2017
@martineng
Copy link

martineng commented Apr 18, 2017

@matthewsmith-io
Thanks for the solution. I experienced the same issue and executed the reinstallation.
However from my testing, without executing xcode-select --install, the error will remain.
By running xcode-select --install first and reinstalling gem install eventmachine -v '1.0.9.1' fixed the issue.
Thanks!

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

No branches or pull requests

4 participants