7

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?

Kira
  • 1,575
  • 4
  • 26
  • 48
  • 2
    This seems related to Xcode 8 on El Capitan (10.11). It should work on Sierra (10.12). – Léo Natan Sep 25 '16 at 12:50
  • Things resolved when I upgraded to macOS – Kira Oct 08 '16 at 07:21
  • 3
    that's not acceptable: I don't want to upgrade my OS just to get this code working. I think what happened is that I upgraded Xcode and then tried to run an existing project. Rebuilding the project now to see if that fixes the issue. – taranaki Nov 11 '16 at 03:19

2 Answers2

2

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?

Community
  • 1
  • 1
Michael Lang
  • 2,157
  • 3
  • 22
  • 29
-1

install brew first, please enter: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

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。。。。。

laodai
  • 1