Error Failed To Build Gem Native Extension. Rails
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 Us Learn more error error installing rails error failed to build gem native extension about Stack Overflow the company Business Learn more about hiring developers or posting ads error installing rails failed to build gem native extension ubuntu with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow failed to build gem native extension rails mac is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Rails installation error - Failed to build gem native extension up vote error failed to build gem native extension windows 1 down vote favorite 2 I seem to have a conflict when trying to install Rails on Mountain Lion. I have tried updating Ruby but this did not help. I also tried Rails Installer but that also gave an error. Ruby version is 1.8.7 Here is the error I am getting from terminal sudo gem install rails Building native extensions. This could take a while... ERROR: Error installing rails:
Error Failed To Build Gem Native Extension Compass
ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/atomic-1.1.10 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/atomic-1.1.10/ext/gem_make.out ruby-on-rails ruby osx terminal share|improve this question asked Jul 12 '13 at 0:01 Clinton Green 2,00572649 1 Brother, let me tell you: This could take quite a bit of googling. I just went thru similar hell this past week (I'm a first time user of RoR on OSX). If you haven't already go get Homebrew and RVM. Go from there. –Taylor Jul 12 '13 at 0:10 I'm a first timer too and man was it a convoluted process. I finally got it working with RVM. Cheers –Clinton Green Jul 12 '13 at 1:45 add a comment| 4 Answers 4 active oldest votes up vote 1 down vote I installed the x-code command line tools and then the rails install worked correctly. share|improve this answer answered Aug 4 '15 at 13:00 samspired 112 I re-ran xcode-select --install and it worked. Thanks. –Boon Oct 23 '15 at 13:20 add a comment| up vote 0 down vote Use RailsInstaller and these step-by-step instructions: share|improve this answer answered Jul 12 '13 at 0:08 Dai
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start 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 Us
Error Failed To Build Gem Native Extension Osx
Learn more about Stack Overflow the company Business Learn more about hiring developers error failed to build gem native extension windows 8 or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and error failed to build gem native extension linux answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up http://stackoverflow.com/questions/17605531/rails-installation-error-failed-to-build-gem-native-extension and rise to the top Can't install a Ruby package: Failed to build gem native extension up vote 2 down vote favorite 1 I installed ruby 2.1.0 and package pdfbeads on 32bit 12.04 last year following the blog https://railssavvy.wordpress.com/2012/06/02/install_ruby_and_rails/, and it worked. Now it seems that I have installed ruby 2.2.0 on 64bit 14.04, but met the problem when installing pdfbeads. Installing rvm and ruby: I heard the ruby http://askubuntu.com/questions/600068/cant-install-a-ruby-package-failed-to-build-gem-native-extension in Ubuntu repository does not work (but I don't know if that still applies), so I followed https://railssavvy.wordpress.com/2012/06/02/install_ruby_and_rails/ to install rvm and ruby. I am not sure if I did the right things in the following: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 curl -L get.rvm.io | bash -s stable I originally first ran curl -L get.rvm.io | bash -s stable first, but it asked me to run the gpg command before it. Then I add a line to ~/.bashrc: PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting And a couple of lines to ~/.bash_profile: [[ -s "$HOME/.profile" ]] && source "$HOME/.profile" [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" Then I ran: source ~/.rvm/scripts/rvm rvm requirements rvm autolibs disable $ rvm install 2.2.0 Already installed ruby-2.2.0. To reinstall use: rvm reinstall ruby-2.2.0 it tells me I have installed ruby already, then I checked the output of the previous commands, and found that curl -L get.rvm.io | bash -s stable seems already installed ruby. Then I ran: rvm --default use 2.2.0 Did I install rvm and ruby correctly? Or is there some better way to do that? Now I would like to install a package pdfbeads: $ gem install pdfbeads Building native extensions. This could take a whil
Sign in Pricing Blog Support Search GitHub This repository Watch 62 Star https://github.com/postmodern/chruby/issues/349 1,859 Fork 155 postmodern/chruby Code Issues 48 Pull requests https://github.com/flori/json/issues/253 17 Projects 0 Wiki Pulse Graphs New issue problem installing rails ....missing ruby.h #349 Closed dec1 opened this Issue Sep 22, 2015 · 4 comments Projects None yet Labels None yet Milestone No milestone Assignees failed to No one assigned 3 participants dec1 commented Sep 22, 2015 I have a problem installing a custom version of rails. Im using opensuse 13.2 (which has a system ruby 2.1 already installed) I installed “ruby-install” and “chruby” so that I could install and manage custom ruby/rails versions without failed to build affecting the system ones. Installing ruby 2.2.3 itself seemed to work fine. However when I try to install rails via gem, I get an error. Somehow the installation seems to be looking for files belonging to the system (2.1) ruby instead of the (active) 2.2.3. declan@linux-p8rr:~> chruby system declan@linux-p8rr:~> ruby --version ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux-gnu] declan@linux-p8rr:~> declan@linux-p8rr:~> declan@linux-p8rr:~> chruby 2.2.3 declan@linux-p8rr:~> ruby --version ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] declan@linux-p8rr:~> declan@linux-p8rr:~> declan@linux-p8rr:~> gem install rubygems-update Successfully installed rubygems-update-2.4.8 Parsing documentation for rubygems-update-2.4.8 Done installing documentation for rubygems-update after 0 seconds 1 gem installed declan@linux-p8rr:~> declan@linux-p8rr:~> sudo gem install rails Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /usr/bin/ruby.ruby2.1 extconf.rb mkmf.rb can't find header files for ruby at /usr/lib64/ruby/include/ruby.h I can install “ruby-devel” via yast (my system package ma
Sign in Pricing Blog Support Search GitHub This repository Watch 25 Star 408 Fork 163 flori/json Code Issues 60 Pull requests 15 Projects 0 Wiki Pulse Graphs New issue json-1.8.3 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. #253 Open yashwinkumar opened this Issue Jul 31, 2015 · 85 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 74 participants and others yashwinkumar commented Jul 31, 2015 Installing json 1.8.3 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-15743-prqh44.rb extconf.rb Cannot allocate memory - /usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-15743-prqh44.rb extconf.rb 2>&1 Gem files will remain installed in /home/projects/individ/releases/20150730121841/vendor/bundle/ruby/2.2.0/gems/json-1.8.3 for inspection. Results logged to /home/projects/individ/releases/20150730121841/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out An error occurred while installing json (1.8.3), and Bundler cannot continue. Make sure that gem install json -v '1.8.3' succeeds before bundling. 👍 4 purezen commented Aug 15, 2015 I have the same issue. Am on Yosemite (Mac) and Ruby 2.2.2. alaouy commented Aug 22, 2015 The same issue on ubuntu-trusty-64 running ruby 2.2.3. the solution is to install libgmp3-dev. sudo apt-get install libgmp3-dev 👍 41 😄 9 🎉 11 😕 1 ❤️ 25 snicky commented Aug 24, 2015 Thanks alaouy! sivagollapalli commented Aug 25, 2015 @alaouy Thanks. elcisko commented Aug 25, 2015 thanks!!! jogaco commented Sep 10, 2015 Good tip! DRAKUN commented Sep 11, 2015 Hi i have the same problem on mac osx10.10 please someone can help , i search solution but i dont see nothing phsilbr commented Sep 15, 2015 Thanks a lot! evaldasg commented Sep 18, 2015 thanks @alaouy 👍 gabrielmedina commented Sep 23, 2015 thanks! MannyCrisostomo commented Sep 24, 2015 Thanks @alaouy, God bless you man! xri