Getting Error: Dyld: Symbol Not Found: _Clock_Gettime

Getting Error: Dyld: Symbol Not Found: _Clock_Gettime

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?

3

2 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?

2

install brew first, please enter: ruby -e "$(curl -fsSL )"

please enter:

brew doctor

according to the prompt operation,Probably appear “sudo xcode-select --install” ,please do it, if appear "Your system is ready to brew.",that is ok,Re input “ram install 2.3" ,that is ok,good luck ,Please don't mind my English。。。。。

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.