Gem Install Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions error installing nokogiri: error: failed to build gem native extension. you might have Meta Discuss the workings and policies of nokogiri gem::ext::builderror: error: failed to build gem native extension. this site About Us Learn more about Stack Overflow the company Business Learn more about hiring an error occurred while installing nokogiri (1.6.8), and bundler cannot continue. developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is
Zlib Is Missing; Necessary For Building Libxml2
a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ERROR: Error installing ffi: ERROR: Failed to build gem native extension up vote 11 down vote favorite 2 Got the DevKit installed and re-ran the ffi install….got this as an output: C:\Documents extconf.rb failed and Settings\******>gem install ffi Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing ffi: ERROR: Failed to build gem native extension. C:/Ruby192/bin/ruby.exe extconf.rb checking for ffi.h... no checking for ffi.h in /usr/local/include... no checking for rb_thread_blocking_region()... yes checking for ruby_thread_has_gvl_p()... yes checking for ruby_native_thread_p()... yes checking for rb_thread_call_with_gvl()... yes creating extconf.h creating Makefile make C:/Ruby192/bin/ruby -e "puts 'EXPORTS', 'Init_ffi_c'" > ffi_c-i386-mingw32.def gcc -I. -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby192/include/ruby-1 .9.1/ruby/backward -I/C/Ruby192/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\"extcon f.h\" -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith - Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -Wno-declaration-a fter-statement -o AbstractMemory.o -c AbstractMemory.c In file included from AbstractMemory.c:28:0: compat.h:65:20: warning: extra tokens at end of #ifndef directive compat.h:69:24: warning: extra tokens at end of #ifndef directive In file included from AbstractMemory.h:29:0, from AbstractMemory.c:29: Types.h:68:17: fatal error: ffi.h: No such file or directory compilation terminated. make: *** [AbstractMemory.o] Error 1 Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/ffi-1.0.1 0 for inspection. Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/ffi-1.0.10/ext/ffi_c/gem_m ake.out ______________________________
Sign in Pricing Blog Support Search GitHub This repository Watch 111 Star 3,416 Fork 533 eventmachine/eventmachine Code Issues could not create makefile due to some reason, probably lack of necessary libraries and/or headers. 154 Pull requests 34 Projects 0 Wiki Pulse Graphs ERROR: Failed
Extconf Failed, Exit Code 1
to build gem native extension #643 Closed craigmdennis opened this Issue Oct 9, 2015 · 36 comments
You Have To Install Development Tools First.
Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 33 participants and others craigmdennis commented Oct 9, 2015 I'm trying http://stackoverflow.com/questions/7852566/error-error-installing-ffi-error-failed-to-build-gem-native-extension to install middleman but it crashes when trying to install version 1.0.8 of eventemitter. I'm running OSX 10.11 El Capitan. I use rbenv and have tried ruby 2.1.7 and 2.2.0 The full error is below: Installing eventmachine 1.0.8 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/local/var/rbenv/versions/2.1.7/bin/ruby extconf.rb checking for rb_trap_immediate https://github.com/eventmachine/eventmachine/issues/643 in ruby.h,rubysig.h... no checking for rb_thread_blocking_region()... yes checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... yes checking for inotify_init() in sys/inotify.h... no checking for __NR_inotify_init in sys/syscall.h... no checking for writev() in sys/uio.h... yes checking for rb_thread_fd_select()... yes checking for rb_fdset_t in ruby/intern.h... yes checking for pipe2() in unistd.h... no checking for accept4() in sys/socket.h... no checking for SOCK_CLOEXEC in sys/socket.h... no checking for rb_wait_for_single_fd()... yes checking for rb_enable_interrupt()... no checking for rb_time_new()... yes checking for sys/event.h... yes checking for sys/queue.h... yes CFLAGS= -O3 -Wno-error=shorten-64-to-32 -pipe -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result CPPFLAGS=-I/usr/local/var/rbenv/versions/2.1.7/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags) -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result checking for clock_gettime()... no checking for gethrtime()... no creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling binder.cpp In file included from binder.cpp:20: ./project.h:116:10: fatal error: 'openssl/ssl.h' file not found #include
Error message in the command line for Mac when installing - gem install sass (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory. I get this error message when typing: gem install sass I want to https://teamtreehouse.com/community/error-message-in-the-command-line-for-mac-when-installing-gem-install-sass follow along with the Sass course but know nothing about Ruby. Is it safe to be tinkering in the Terminal or should I steer clear until I have a clearer understanding. Thanks in advance for any help / advice. 3 Answers Kyle Meyer 5,378 Points Kyle Meyer Kyle Meyer 5,378 Points about 2 years ago Hey Kevin Fitzhenry, Since you're using the default version of Ruby that came installed on your Mac, you error: failed need to use administrative privileges to install gems. The command would look like: sudo gem install sass This will prompt you for your administrator password and will install Sass after. This is safe and will allow you to continue with the course! Let me know if it works out for you. Kevin Fitzhenry 22,136 Points Kevin Fitzhenry Kevin Fitzhenry 22,136 Points 2y ago Wow, speedy response to my question. Thanks everyone. So, Kyle error: failed to Meyer that worked but also gave a me a warning message that sudo command could cause deletion of files and data loss if I messed up the syntax or spelling of anything. Is this something that should totally freak me out since I am a complete n00b in the Terminal? Cause it does. If I'm in the Terminal in the future should I follow Camron Schwoegler 's advice and try rbenv or RVM for a safer environment? I think it's obvious I don't really understand what I am doing I just don't want to destroy my computer in anyway. Thanks a ton for your help! Kyle Meyer 5,378 Points Kyle Meyer Kyle Meyer 5,378 Points 2y ago Haha it should freak you out a little. :) If you're just learning Sass and not planning to dip into Ruby programming, I'd just go ahead with the sudo command. If you choose to install a ruby version manager, I'd suggest rvm. Richard Boothe 15,337 Points Richard Boothe Richard Boothe 15,337 Points 2y ago Thanks Kyle! I had the same issue. MOD Andrew Shook Treehouse Moderator 31,057 Points Andrew Shook Andrew Shook Treehouse Moderator 31,057 Points about 2 years ago You may need to use sudo at the beginning of your install command. Camron Schwoegler 4,784 Points Camron Schwoegler Camron Schwoegl