Skip to content

Instantly share code, notes, and snippets.

@jcohenho
Created January 3, 2014 23:48
Show Gist options
  • Save jcohenho/8249044 to your computer and use it in GitHub Desktop.
Save jcohenho/8249044 to your computer and use it in GitHub Desktop.
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/jhoffing/.rbenv/versions/1.9.3-p0/bin/ruby extconf.rb
creating Makefile
make
compiling bcrypt_ext.c
In file included from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby.h:32,
from bcrypt_ext.c:1:
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:48:21: error: string.h: No such file or directory
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:58:21: error: stdint.h: No such file or directory
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:61:23: error: inttypes.h: No such file or directory
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:65:19: error: stdio.h: No such file or directory
In file included from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:67,
from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby.h:32,
from bcrypt_ext.c:1:
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/defines.h:29:21: error: stdlib.h: No such file or directory
In file included from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby.h:32,
from bcrypt_ext.c:1:
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:74:20: error: alloca.h: No such file or directory
In file included from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:178,
from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby.h:32,
from bcrypt_ext.c:1:
/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory
In file included from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:1360,
from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby.h:32,
from bcrypt_ext.c:1:
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/missing.h:28:24: error: sys/time.h: No such file or directory
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/missing.h:37:25: error: sys/types.h: No such file or directory
In file included from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:1360,
from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby.h:32,
from bcrypt_ext.c:1:
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/missing.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__syscall’
In file included from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:34,
from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:1361,
from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby.h:32,
from bcrypt_ext.c:1:
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/st.h:129: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
In file included from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/ruby.h:1361,
from /Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby.h:32,
from bcrypt_ext.c:1:
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:285: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_fdset_t’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:379: error: expected declaration specifiers or ‘...’ before ‘fd_set’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:379: error: expected declaration specifiers or ‘...’ before ‘fd_set’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:379: error: expected declaration specifiers or ‘...’ before ‘fd_set’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:379: warning: ‘struct timeval’ declared inside parameter list
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:379: warning: its scope is only this definition or declaration, which is probably not what you want
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:380: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:380: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:380: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:380: warning: ‘struct timeval’ declared inside parameter list
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:381: warning: ‘struct timeval’ declared inside parameter list
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:559: error: expected declaration specifiers or ‘...’ before ‘pid_t’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:577: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_fork’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:578: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_fork_err’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:580: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_waitpid’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:581: error: expected ‘)’ before ‘pid’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:582: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_spawn’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:583: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_spawn_err’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:585: error: expected ‘)’ before ‘pid’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:703: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:828: error: expected ‘)’ before ‘long’
/Users/jhoffing/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby/intern.h:829: error: expected ‘)’ before ‘long’
bcrypt_ext.c: In function ‘bc_salt’:
bcrypt_ext.c:46: warning: incompatible implicit declaration of built-in function ‘strlen’
make: *** [bcrypt_ext.o] Error 1
Gem files will remain installed in /Users/jhoffing/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-3.0.1 for inspection.
Results logged to /Users/jhoffing/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-3.0.1/ext/mri/gem_make.out
An error occurred while installing bcrypt-ruby (3.0.1), and Bundler cannot continue.
Make sure that `gem install bcrypt-ruby -v '3.0.1'` succeeds before bundling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment