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
{{ message }}
Repository navigation
Cannot build http-parser native extension on Heroku #16
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.
Bumping up the http version helped. Somehow, we had an older version of rake bound in the Gemfile, updating that helped us update http and get rid of this dependency.
Activity
robert-damoc commentedon Feb 21, 2022
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.
arbales commentedon Feb 21, 2022
Yes! Bump your http gem version or build it from source, it removes this dependency.
erwinwolff commentedon Mar 22, 2022
I have this same problem. What was your fix?
arbales commentedon Mar 22, 2022
See above, just use the gem from GitHub.
erwinwolff commentedon Mar 22, 2022
Still doesnt really work
erwinwolff commentedon Mar 22, 2022
arbales commentedon Mar 23, 2022
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.
ssinghi commentedon May 1, 2025
Bumping up the http version helped. Somehow, we had an older version of rake bound in the Gemfile, updating that helped us update
httpand get rid of this dependency.This repository should be archived.