Error Failed To Build Gem Native Extension. Ubuntu
Contents |
here for a quick overview of the site Help Center Detailed answers to any extconf.rb failed ubuntu questions you might have Meta Discuss the workings and policies
Gem Mkmf
of this site About Us Learn more about Stack Overflow the company Business Learn more about ubuntu mysql error failed to build gem native extension hiring 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 error failed to build gem native extension rails is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unable to install gem - Failed to build gem native extension - cannot load such file — mkmf (LoadError) up vote 131 down vote favorite 18 Ruby 1.9.3 The part
Error Failed To Build Gem Native Extension Mac
of Gemfile #............... gem "pony" gem "bcrypt-ruby", :require => "bcrypt" gem "nokogiri" #.................. When I'm trying to install gems, I get an error alex@ubuntu:~/$ bundle Fetching gem metadata from http://rubygems.org/......... Fetching gem metadata from http://rubygems.org/.. Enter your password to install the bundled RubyGems to your system: #####............................................................ Installing bcrypt-ruby (3.0.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from extconf.rb:36:in `
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 error failed to build gem native extension windows any questions you might have Meta Discuss the workings and policies error failed to build gem native extension compass of this site About Us Learn more about Stack Overflow the company Business Learn more about
Error Failed To Build Gem Native Extension Osx
hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for http://stackoverflow.com/questions/13767725/unable-to-install-gem-failed-to-build-gem-native-extension-cannot-load-such 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 and rise to the top Can't install a Ruby package: Failed to build gem native extension up vote 2 down vote favorite 1 http://askubuntu.com/questions/600068/cant-install-a-ruby-package-failed-to-build-gem-native-extension 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 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 ~
Sign in Pricing Blog Support Search GitHub This repository Watch 78 Star 3,518 Fork 352 sj26/mailcatcher Code Issues 19 Pull requests 19 https://github.com/sj26/mailcatcher/issues/144 Projects 0 Pulse Graphs New issue Failed to build gem native extension on Linux with no explanation #144 Closed Faison opened this Issue Jun 27, 2014 · 19 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 13 participants Faison commented Jun 27, 2014 Hi There, I'm using vagrant with error failed Ubuntu 14.04 LTS (Trusty Tahr) and have installed sqlite3-dev. When I try to install mailcatcher, the installation fails and I don't get a nice debug message telling me what went wrong. So I'm posting what happened here in hopes that someone will be able to help me out. Thanks! Here's what happened with the gem installer vagrant@vvv:~$ sudo gem error failed to install mailcatcher Building native extensions. This could take a while... ERROR: Error installing mailcatcher: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb Gem files will remain installed in /var/lib/gems/1.9.1/gems/eventmachine-1.0.3 for inspection. Results logged to /var/lib/gems/1.9.1/gems/eventmachine-1.0.3/ext/gem_make.out vagrant@vvv:~$ cat /var/lib/gems/1.9.1/gems/eventmachine-1.0.3/ext/gem_make.out /usr/bin/ruby1.9.1 extconf.rb Here's what happened when I tried to install from source vagrant@vvv:~/mailcatcher$ gem build mailcatcher.gemspec Successfully built RubyGem Name: mailcatcher Version: 0.6.0 File: mailcatcher-0.6.0.gem vagrant@vvv:~/mailcatcher$ sudo gem install mailcatcher-0.6.0.gem Fetching: json-1.8.1.gem (100%) Building native extensions. This could take a while... ERROR: Error installing mailcatcher-0.6.0.gem: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.8.1 for inspection. Results logged to /var/lib/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out vagrant@vvv:~/mailcatcher$ cat /var/lib/gems/1.9.1/gems/eventmachine-1.0.3/ext/gem_make.out /usr/bin/ruby1.9.1 extconf.rb sunilkr commented Jul 4, 2014 You have gcc? Try 'apt-get install build-essential' before installing gem. Faison commented Jul 7, 2014 Hi @sunilkr, I have gcc, and build-essential is installed and up-to-date: build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 49 not upgraded. I did notice that my version of Ruby isn't up-to-date. Entering the