Error Installing Rails Failed To Build Gem Native Extension Windows
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About error installing rails failed to build gem native extension ubuntu Us Learn more about Stack Overflow the company Business Learn more about hiring error installing json failed to build gem native extension developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the
Error Installing Compass Failed To Build Gem Native Extension
Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ERROR: Failed to build gem
Error Installing Mysql2 Failed To Build Gem Native Extension
native extension on Windows up vote 4 down vote favorite 2 I'm getting the below error while installing 'redcarpet' gem. It got installed without issue on my friends machine though. (I want to install this to run yard) Ruby version: 1.9.3 cmd output: D:\Learning\Common_POM_FW\SampleProjects>yard [error]: Missing 'redcarpet' gem for Markdown formatting. Install it with `gem install redcarpet` D:\Learning\Common_POM_FW\SampleProjects>gem install redcarpet Temporarily enhancing PATH to include DevKit... rails failed to build gem native extension mac Building native extensions. This could take a while... ERROR: Error installing redcarpet: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe -r ./siteconf20141009-6544-978w4t.rb extconf.rb creating Makefile make clean Makefile:165: *** target pattern contains no `%'. Stop. make Makefile:165: *** target pattern contains no `%'. Stop. make failed, exit code 2 Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcarpet-3.1.2 for inspectio n. Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/redcarpet-3.1.2/gem_ma ke.out UPDATE: With the devkit installation instructions provided at https://github.com/oneclick/rubyinstaller/wiki/Development-Kit When I test the installation with json gem it fails there too :( I went through the link for troubleshoot in github Native gem extension Error and followed the instructions to solve, Yet the problem persists.. I added the two paths to Env var C:\\ruby_devkit\\bin;C:\\ruby_devkit\\mingw\\bin; This removes the line Temporarily enhancing PATH to include DevKit... from appearing on cmd ruby rubygems devkit share|improve this question edited Oct 10 '14 at 4:20 asked Oct 9 '14 at 10:33 Aks.. 622624 add a comment| 2 Answers 2 active oldest votes up vote 22 down vote accepted Finally after much research I found the culprit was the RubyGems version incompatibility with native extension gems!!! I had ruby gems ver 2.4.1 but seems like >2.4.0 has th
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Error Failed To Build Gem Native Extension Windows 7
and policies of this site About Us Learn more about Stack Overflow failed to build gem native extension windows 10 the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation failed to build gem native extension windows 8 Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it http://stackoverflow.com/questions/26276207/error-failed-to-build-gem-native-extension-on-windows only takes a minute: Sign up Failed to build gem native extension — Rails install up vote 64 down vote favorite 19 I have been installing Ruby on Rails based on the instruction from edX online class. Here is a list of terminal commands, and, where relevant, corresponding output: $ sudo apt-get install ruby1.9.1 installation successful $ wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.24.tgz $ http://stackoverflow.com/questions/12552929/failed-to-build-gem-native-extension-rails-install tar zxvf ruby-1.8.24.tgz $ cd ruby-1..8.24 $ sudo ruby setup.rb RubyGems 1.8.24 installed == 1.8.24 / 2012-04-27 * 1 bug fix: * Install the .pem files properly. Fixes #320 * Remove OpenSSL dependency from the http code path ------------------------------------------------------------------------------ RubyGems installed the following executables: /usr/bin/gem1.9.1 Up to here, everything looked fine, but the I tried to install rails and failed: $ sudo gem install rails Fetching: i18n-0.6.1.gem (100%) Fetching: multi_json-1.3.6.gem (100%) Fetching: activesupport-3.2.8.gem (100%) Fetching: builder-3.0.3.gem (100%) Fetching: activemodel-3.2.8.gem (100%) Fetching: rack-1.4.1.gem (100%) Fetching: rack-cache-1.2.gem (100%) Fetching: rack-test-0.6.1.gem (100%) Fetching: journey-1.0.4.gem (100%) Fetching: hike-1.2.1.gem (100%) Fetching: tilt-1.3.3.gem (100%) Fetching: sprockets-2.1.3.gem (100%) Fetching: erubis-2.7.0.gem (100%) Fetching: actionpack-3.2.8.gem (100%) Fetching: arel-3.0.2.gem (100%) Fetching: tzinfo-0.3.33.gem (100%) Fetching: activerecord-3.2.8.gem (100%) Fetching: activeresource-3.2.8.gem (100%) Fetching: mime-types-1.19.gem (100%) Fetching: polyglot-0.3.3.gem (100%) Fetching: treetop-1.4.10.gem (100%) Fetching: mail-2.4.4.gem (100%) Fetching: actionmailer-3.2.8.gem (100%) Fetching: rake-0.9.2.2.gem (100%) Fetching: rack-ssl-1.3.2.gem (100%) Fetching: thor-0.16.0.gem (100%) Fetching: json-1.7.5.gem (100%) Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError) from /usr/local/lib/site_ruby/1.9.
Sign in Pricing Blog Support Search GitHub This repository Watch 1,310 Star 27,183 Fork 5,995 jekyll/jekyll Code Issues 122 Pull requests 38 https://github.com/jekyll/jekyll/issues/3208 Projects 0 Wiki Pulse Graphs New issue "Failed to build gem native extension." on win7 #3208 Closed zieckey opened this Issue Dec 14, 2014 · 22 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 7 participants zieckey commented Dec 14, 2014 ERROR: Error installing jekyll: ERROR: Failed to failed to build gem native extension. d:/Ruby21-x64/bin/ruby.exe extconf.rb creating Makefile make "DESTDIR=" clean make "DESTDIR=" generating stemmer-x64-mingw32.def compiling porter.c compiling porter_wrap.c In file included from d:/Ruby21-x64/include/ruby-2.1.0/ruby/ruby.h:29:0, from d:/Ruby21-x64/include/ruby-2.1.0/ruby.h:33, from porter_wrap.c:1: d:/Ruby21-x64/include/ruby-2.1.0/ruby/defines.h:65:22: fatal error: setjmpex.h: No such file or directory compilation terminated. make: *** [porter_wrap.o] Error 1 make failed, exit code 2 Gem files will remain installed in d:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/fast-stemmer-1.0.2 for inspection. failed to build Results logged to d:/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0/fast-stemmer-1.0.2/gem_make.out sondr3 commented Dec 14, 2014 Have you tried running cmd as an admin and tried via that? Jekyll member parkr commented Dec 15, 2014 Do you know if you have the Ruby development headers installed? Never seen this before. @jekyll/windows? Jekyll member alfredxing commented Dec 15, 2014 @zieckey How did you install your Ruby? zieckey commented Dec 15, 2014 @alfredxing I downloaded windows installer to install at "d:\Ruby21-x64", and then install devkil at "D:\Ruby21-x64\devkit" zieckey commented Dec 15, 2014 @parkr how do I check it whether I have the Ruby development headers installed? I an a a fresh hand to Ruby. zieckey commented Dec 15, 2014 @sondr3 I am the administrator user. Jekyll member alfredxing commented Dec 15, 2014 @zieckey Did you follow the DevKit installation instructions? zieckey commented Dec 15, 2014 @alfredxing Yes. Test as below: $ gem install json --platform=ruby Fetching: json-1.8.1.gem (100%) Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed json-1.8.1 Parsing documentation for json-1.8.1 Installing r