Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error: dyld: Symbol not found: _clock_gettime

Tags:

ruby

middleman

I want to start a middleman with command middleman server and when I do I get an error:

dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from: /usr/local/lib/ruby/gems/2.3.0/gems/eventmachine-1.2.0.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.3.0/gems/eventmachine-1.2.0.1/lib/rubyeventmachine.bundle (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

This has something to do with livereload, because when I remove it it works.

How can I resolve this?

like image 358
Kira Avatar asked Sep 17 '16 08:09

Kira


1 Answers

I was getting the same dyld: Symbol not found: _clock_gettime error message during an attempted install of ruby 2.3.1 on El Capitan.

The advice here to run xcode-select --install and allow the xcode command line tools to reinstall solved that issue for me.

If you're using that version of OS X perhaps it may help you as well?

like image 130
Michael Lang Avatar answered Oct 31 '22 13:10

Michael Lang