Skip to content

Cannot build http-parser native extension on Heroku #16

@arbales

Description

@arbales

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.

remote:        Installing http-parser 1.2.3 with native extensions
remote:        Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
remote:
remote:        current directory:
remote:        /tmp/build_54efc73d/vendor/bundle/ruby/3.1.0/gems/http-parser-1.2.3/ext
remote:        /tmp/build_54efc73d/vendor/ruby-3.1.0/bin/ruby
remote:        -I/tmp/build_54efc73d/vendor/ruby-3.1.0/lib/ruby/3.1.0 -rrubygems
remote:        /tmp/build_54efc73d/vendor/bundle/ruby/3.1.0/gems/rake-12.3.3/exe/rake
remote:        RUBYARCHDIR\=/tmp/build_54efc73d/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/http-parser-1.2.3
remote:        RUBYLIBDIR\=/tmp/build_54efc73d/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/http-parser-1.2.3
remote:        rake aborted!
remote:        ArgumentError: wrong number of arguments (given 2, expected 1)
remote:        /tmp/build_54efc73d/vendor/bundle/ruby/3.1.0/gems/rake-12.3.3/exe/rake:27:in
remote:        `<main>'
remote:        Tasks: TOP => default => x86_64-linux/libhttp-parser-ext.so =>
remote:        x86_64-linux/http-parser/http_parser.o => x86_64-linux/http-parser
remote:        (See full trace by running task with --trace)
remote:
remote:        rake failed, exit code 1
remote:
remote:        Gem files will remain installed in
remote:        /tmp/build_54efc73d/vendor/bundle/ruby/3.1.0/gems/http-parser-1.2.3 for
remote:        inspection.
remote:        Results logged to
remote:        /tmp/build_54efc73d/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/http-parser-1.2.3/gem_make.out

remote:
remote:        An error occurred while installing http-parser (1.2.3), and Bundler cannot
remote:        continue.
remote:
remote:        In Gemfile:
remote:          http was resolved to 4.4.1, which depends on
remote:            http-parser

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