Open arbales opened 2 years ago
Have you managed to find a fix for this? I have kind of the same issue, where on local it works, but it fails on the CI, with the same message.
It worked on ruby 2.7.5. Now I am trying to go to 3.0.3, and it's failing.
Yes! Bump your http gem version or build it from source, it removes this dependency.
I have this same problem. What was your fix?
See above, just use the gem from GitHub.
Still doesnt really work
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /****/vendor/ruby/3.0.0/bundler/gems/http-parser-4a0db044c746/ext
/usr/bin/ruby -I/usr/lib/ruby/site_ruby/3.0.0 -rrubygems /****/vendor/ruby/3.0.0/gems/rake-13.0.6/exe/rake RUBYARCHDIR\=/******/vendor/ruby/3.0.0/bundler/gems/extensions/x86_64-linux/3.0.0-static/http-parser-4a0db044c746
RUBYLIBDIR\=/*****/vendor/ruby/3.0.0/bundler/gems/extensions/x86_64-linux/3.0.0-static/http-parser-4a0db044c746
gcc -shared -o x86_64-linux/libhttp-parser-ext.so -fexceptions
gcc: fatal error: no input files
compilation terminated.
rake aborted!
Command failed with status (1): [gcc -shared -o x86_64-linux/libhttp-parser...]
/*****/vendor/ruby/3.0.0/gems/ffi-compiler-1.0.1/lib/ffi-compiler/compile_task.rb:153:in `block in define_task!'
/*****/vendor/ruby/3.0.0/gems/rake-13.0.6/exe/rake:27:in `<main>'
Tasks: TOP => default => x86_64-linux/libhttp-parser-ext.so
(See full trace by running task with --trace)
rake failed, exit code 1
Gem files will remain installed in /****/vendor/ruby/3.0.0/bundler/gems/http-parser-4a0db044c746 for inspection.
Results logged to /****/vendor/ruby/3.0.0/bundler/gems/extensions/x86_64-linux/3.0.0-static/http-parser-4a0db044c746/gem_make.out
An error occurred while installing http-parser (1.2.3), and Bundler cannot continue.
rake --version
rake, version 13.0.6
Ah sorry, you know -- I updated the http gem not this parser gem. The http gem removes this dep in their update. I wasn't able to build http-parser.
I've been unable to build the
http-parser
gem on Heroku with Ruby 3.0+. Have tried bumping my Ruby version to no avail.