Skip to content

dyld: Symbol not found: _ffi_prep_closure_loc on Macos 10.14 #791

@Marco-FI-SEI

Description

@Marco-FI-SEI

Steps to reproduce:

  1. Create new rails app (I tried with ruby 2.6.1 and 2.6.5 and rails 6 and latest release)
  2. Create a controller (rails generate controller-name action e.g. site index)
  3. Start rails server and go to url of above action (or set it as root in step 2)
  4. Rails server aborts abruptly

This is the error I receive:

dyld: lazy symbol binding failed: Symbol not found: _ffi_prep_closure_loc
Referenced from: /Users/Marco/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle
Expected in: /usr/lib/libffi.dylib

dyld: Symbol not found: _ffi_prep_closure_loc
Referenced from: /Users/Marco/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle
Expected in: /usr/lib/libffi.dylib

In my gemfile I have the following: gem 'ffi', '> 1.13', '>= 1.13.1'. I removed it and replaced it with gem 'ffi', '> 1.12.2' as per a suggestion on Stack Overflow and my issue is resolved.

Please let me know what other info I can provide to help. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions