You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! One of the apps I work on is failing on install via bundle or rubygems on my development machine (M1 MacBook/Ventura 13.5.1) because of the http gem we use which relies on llhttp-ffi. It seemed to happen after upgrading the OS recently with dot release but I can't be sure that's the cause. I checked and re-installed Xcode, reinstalled various homebrew libs , and I've installed Ruby 3.2.2 in different ways with different compiler flags and still getting the same error. I can gem install llhttp and ffi but gem install llhttp-ffi is consistently failing with the following errors: (adding ffi-compiler to the Gemfile wasn't helpful)
> gem install llhttp-ffi
Fetching llhttp-ffi-0.5.0.gem
Fetching ffi-1.15.5.gem
Building native extensions. This could take a while...
Successfully installed ffi-1.15.5
Building native extensions. This could take a while...
ERROR: Error installing llhttp-ffi:
ERROR: Failed to build gem native extension.
current directory: /Users/mikemanewitz/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/llhttp-ffi-0.5.0/ext
/Users/mikemanewitz/.asdf/installs/ruby/3.2.2/bin/ruby -rrubygems /Users/mikemanewitz/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rake-13.0.6/exe/rake RUBYARCHDIR\=/Users/mikemanewitz/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/extensions/arm64-darwin-22/3.2.0/llhttp-ffi-0.5.0 RUBYLIBDIR\=/Users/mikemanewitz/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/extensions/arm64-darwin-22/3.2.0/llhttp-ffi-0.5.0
rake aborted!
LoadError: cannot load such file -- ffi-compiler/compile_task
<internal:/Users/mikemanewitz/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/Users/mikemanewitz/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
(See full trace by running task with --trace)
rake failed, exit code 1
Gem files will remain installed in /Users/mikemanewitz/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/llhttp-ffi-0.5.0 for inspection.
Results logged to /Users/mikemanewitz/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/extensions/arm64-darwin-22/3.2.0/llhttp-ffi-0.5.0/gem_make.out
Anyone have any ideas on what could be happening? Happy to add any additional context/config info but I'm about to nuke my setup and start over since I've been spinning my wheels for a couple days. Any help is much appreciated. Thank you!
The text was updated successfully, but these errors were encountered:
I was able to figure it out. I had to install the gem rubygems-tasks which I don't see referred to anywhere. It might be worth explicitly noting this somewhere or adding to the dependencies? I'm on the latest rubygems (3.4.10) if that makes a difference.
Hello! One of the apps I work on is failing on install via bundle or rubygems on my development machine (M1 MacBook/Ventura 13.5.1) because of the
http
gem we use which relies onllhttp-ffi
. It seemed to happen after upgrading the OS recently with dot release but I can't be sure that's the cause. I checked and re-installed Xcode, reinstalled various homebrew libs , and I've installed Ruby 3.2.2 in different ways with different compiler flags and still getting the same error. I cangem install llhttp
andffi
butgem install llhttp-ffi
is consistently failing with the following errors: (adding ffi-compiler to the Gemfile wasn't helpful)asdf info
results:Anyone have any ideas on what could be happening? Happy to add any additional context/config info but I'm about to nuke my setup and start over since I've been spinning my wheels for a couple days. Any help is much appreciated. Thank you!
The text was updated successfully, but these errors were encountered: