ruby - Trying to install jekyll, getting the following error: Failed to build gem native extension -


i'm trying install jekyll keep getting stuck on error. here's output attempt @ installing it

clinch@clinch-virtualbox:~$ gem install jekyllbuilding native extensions.  take while... error:  error installing jekyll:     error: failed build gem native extension.          /home/clinch/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb creating makefile  make compiling porter.c cc1: unrecognized option `-wextra' cc1: unrecognized option `-wno-missing-field-initializers' cc1: unrecognized option `-wdeclaration-after-statement' make: *** [porter.o] error 1   gem files remain installed in /home/clinch/.rvm/gems/ruby-1.9.3-p392/gems/fast-stemmer-1.0.2 inspection. results logged /home/clinch/.rvm/gems/ruby-1.9.3-p392/gems/fast-stemmer-1.0.2/ext/gem_make.out clinch@clinch-virtualbox:~$ gcc -v using built-in specs. configured with: ./configure --target=mips-dec-ultrix42 --program-prefix=mips- --with-gnu-as --with-gnu-ld --enable-obsolete thread model: single gcc version 3.2.2 clinch@clinch-virtualbox:~$ ruby -v ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux] clinch@clinch-virtualbox:~$ uname -a linux clinch-virtualbox 3.2.0-37-generic #58-ubuntu smp thu jan 24 15:28:10 utc 2013 x86_64 x86_64 x86_64 gnu/linux 

i've installed ruby1.9.1-dev package already. i've tried compiling gcc 4.6 opposed 3.2.2 showed in output pasted. don't know if native extension error making gcc die. i've rebuilt ruby scratch.

maybe should try ruby version? though know 1.9.3 supported jekyll.

any appreciated.

try installing jekyll ruby or ruby , rails command prompt instead of other command prompt

i not expert @ all, suggested solution 'guess' based on experience below.

i using windows 7. although you're using ubuntu , not windows 7, solution might work pretty same problem.

first, installed ruby railsinstaller. then, wanted install jekyll. tried installing jekyll cygwin. however, received following error (although not identical questioner's error, think sufficiently similar):

$ gem install jekyll building native extensions.  take while... error:  error installing jekyll:         error: failed build gem native extension.          /usr/bin/ruby.exe extconf.rb creating makefile  make gcc -i. -i/usr/include/ruby-1.9.1/x86_64-cygwin -i/usr/include/ruby-1.9.1/ruby/backward -i/usr/include/ruby-1.9.1 -i.   -ggdb -o2 -pipe   -fno-strict-aliasing  -wall   -o posix-spawn.o -c posix-spawn.c posix-spawn.c:9:19: fatal error: spawn.h: no such file or directory  #include <spawn.h>                    ^ compilation terminated. makefile:206: recipe target `posix-spawn.o' failed make: *** [posix-spawn.o] error 1   gem files remain installed in /usr/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6 inspection. results logged /usr/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/ext/gem_make.out 

however, when tried install jekyll command prompt ruby , rails (i.e. ruby command prompt), jekyll installed successfully.

just in case matters, removed system variable {variable:comspec,value:c:\windows\system32\cmd.exe} before (successfully) trying install jekyll ruby , rails command prompt.


Comments