Skip to content

Issues running it on Mac Intel (12.6) #748

@brodock

Description

@brodock

It seems one of the dependencies of this gem: llhttp-ffi is failing to load the ffi library on x86_64 intel mac.

I'm seeing this on a CI instance (running from Macstadium machine), so it's a bit harder to debug.

It seems the library was installed correctly, which I assume compiled the native library, but when executing code it can't find/load it:

LoadError: cannot find 'llhttp-ext' library
/.../.rvm/gems/ruby-3.0.5/gems/ffi-compiler-1.0.1/lib/ffi-compiler/loader.rb:21:in `find'
/.../.rvm/gems/ruby-3.0.5/gems/llhttp-ffi-0.4.0/lib/llhttp.rb:13:in `<module:LLHttp>'
/.../.rvm/gems/ruby-3.0.5/gems/llhttp-ffi-0.4.0/lib/llhttp.rb:6:in `<top (required)>'
/.../.rvm/gems/ruby-3.0.5/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `require'
/.../.rvm/gems/ruby-3.0.5/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `block in require'
/.../.rvm/gems/ruby-3.0.5/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:299:in `load_dependency'
/.../.rvm/gems/ruby-3.0.5/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `require'
/.../.rvm/gems/ruby-3.0.5/gems/http-5.1.1/lib/http/response/parser.rb:3:in `<top (required)>'
...

relevant dependencies from the Gemfile.lock:

    http (5.1.1)
      addressable (~> 2.8)
      http-cookie (~> 1.0)
      http-form_data (~> 2.2)
      llhttp-ffi (~> 0.4.0)

I've also noticed that llhttp-ffi has a new version released, but unsure whether it could help here or not.

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