training-kit icon indicating copy to clipboard operation
training-kit copied to clipboard

Unable to run cibuild script on Mac OS X 10.11.4

Open eriksaline opened this issue 10 years ago • 3 comments

Running ./_buildscripts/cibuild in bash produces the following error. Seems to be related, https://github.com/ffi/ffi/issues/461. Applying the fix mentioned in the issue then gives an additional rake aborted error because the bundle script is not found.

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 /Users/maddog/training-kit/vendor/gems/ruby/2.0.0/gems/ffi-1.9.6/lib/ffi/library.rb:133:in `block in ffi_lib'

eriksaline avatar May 06 '16 06:05 eriksaline

@eriksaline I've solved this before, let me see if I can find my notes.

jbjonesjr avatar May 23 '16 00:05 jbjonesjr

Ok, so from my previous experience with this issue:

update your GemFile to include the following line at the top: gem 'ffi', git: 'git://github.com/ffi/ffi.git', branch: :elcapt

This is actually a dependency based on typhoeus in html-proofer, but that modification should be enough for you.

When i was running either ruby or irb on a file, I did have to make sure it knew the environment, so do something like bundle exec ruby script_file.rb. Keep that in mind if you are testing locally.

jbjonesjr avatar May 23 '16 01:05 jbjonesjr

@jbjonesjr thank you for your helpful troubleshooting! @eriksaline please let us know if you need additional assistance.

crichID avatar Jun 03 '16 15:06 crichID