Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failing on MacOS Catalina #8

Open
jubishop opened this issue Dec 1, 2020 · 0 comments
Open

Build failing on MacOS Catalina #8

jubishop opened this issue Dec 1, 2020 · 0 comments

Comments

@jubishop
Copy link

jubishop commented Dec 1, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant