cotag / http-parser

A super fast http parser for ruby
MIT License
18 stars 17 forks source link

Build failing on MacOS Catalina #8

Open jubishop opened 3 years ago

jubishop commented 3 years ago

This gem has always worked for me in the past ,but now when I try to gem update to 1.2.2 (or any version now), I get:

Building native extensions. This could take a while...
ERROR:  Error installing http-parser:
    ERROR: Failed to build gem native extension.

    current directory: /Users/jubishop/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/http-parser-1.2.2/ext
/Users/jubishop/.rbenv/versions/2.7.1/bin/ruby -I/Users/jubishop/.rbenv/versions/2.7.1/lib/ruby/2.7.0/rubygems -rrubygems /Users/jubishop/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rake-13.0.1/exe/rake RUBYARCHDIR\=/Users/jubishop/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/extensions/x86_64-darwin-19/2.7.0/http-parser-1.2.2 RUBYLIBDIR\=/Users/jubishop/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/extensions/x86_64-darwin-19/2.7.0/http-parser-1.2.2
mkdir -p x86_64-darwin/http-parser
clang -fexceptions -O -fno-omit-frame-pointer -fno-strict-aliasing -Wall -Wextra -O3 -arch x86_64   -o x86_64-darwin/http-parser/http_parser.o -c ./http-parser/http_parser.c
./http-parser/http_parser.c:22:10: fatal error: 'assert.h' file not found
#include <assert.h>
         ^~~~~~~~~~
1 error generated.
rake aborted!
Command failed with status (1): [clang -fexceptions -O -fno-omit-frame-poin...]

Tasks: TOP => default => x86_64-darwin/libhttp-parser-ext.bundle => x86_64-darwin/http-parser/http_parser.o
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in /Users/jubishop/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/http-parser-1.2.2 for inspection.
Results logged to /Users/jubishop/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/extensions/x86_64-darwin-19/2.7.0/http-parser-1.2.2/gem_make.out