An Error Occured While Installing Mysql2
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have an error occurred while installing mysql2 mac Meta Discuss the workings and policies of this site About Us an error occurred while installing mysql2 and bundler cannot continue Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with an error occurred while installing mysql2 (0.3.16) and bundler cannot continue us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just
An Error Occurred While Installing Mysql2 (0.3.13) And Bundler Cannot Continue
like you, helping each other. Join them; it only takes a minute: Sign up Error bundle install - “mysql2” [duplicate] up vote 2 down vote favorite This question already has an answer here: Error installing mysql2: Failed to build gem native extension 22 answers When I run " bundle install " I get the following error: an error occurred while installing mysql2 (0.3.17) and bundler cannot continue An error occurred while installing mysql2 (0.3.17), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.17'` succeeds before bundling. And when I try to run the command gem install mysql2 -v '0.3.17' I get the error: ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. Complete log I've tried reinstalling and installing the rails. I'm on a MacOs. Anyone? Thanks! ruby-on-rails ruby osx share|improve this question edited Nov 21 '14 at 20:14 asked Nov 21 '14 at 19:05 Ricardo Masao Shigeoka 128211 marked as duplicate by Holger Just, Simone Carlettiruby Users with the ruby badge can single-handedly close ruby questions as duplicates and reopen them as needed. Nov 21 '14 at 22:44 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. provide build log please –Малъ Скрылевъ Nov 21 '14 at 19:37 You will get verified answer here: [stackoverflow.com/questions/3608287/… [1]: stackoverflow.com/questions/3608287/… &ndash
here for a quick overview of the site Help Center Detailed answers to any questions you might have an error occurred while installing mysql2 (0.3.11) and bundler cannot continue Meta Discuss the workings and policies of this site About Us
An Error Occurred While Installing Mysql2 (0.3.18) And Bundler Cannot Continue
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
An Error Occurred While Installing Mysql2 (0.3.14) And Bundler Cannot Continue
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, http://stackoverflow.com/questions/27068484/error-bundle-install-mysql2 just like you, helping each other. Join them; it only takes a minute: Sign up I can't run “bundle update” because of “mysql2” gem up vote 8 down vote favorite 3 I have this in the Gemfile: gem 'mysql2' But when I run bundle update, I get this error message: An error occurred while installing mysql2 http://stackoverflow.com/questions/24009416/i-cant-run-bundle-update-because-of-mysql2-gem (0.3.16), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling. I've tried to move this into the production section, like this: group :production do gem 'mysql2' end But after running bundle update, the result is the same. This section is processed only in the production mode, or not? How to get rid of this error message on localhost? EDIT: The whole error message: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/radek/.rvm/rubies/ruby-1.9.3-p385/bin/ruby extconf.rb checking for ruby/thread.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/radek/.rvm/rubies/ruby-1.9.3-p385/bin/ruby /Users/radek/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/radek/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp' from /Users/radek/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/mkmf.rb:931:in `block in have_header' from /Users/radek/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for' from /Users/radek/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone' fro
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://stackoverflow.com/questions/18840020/an-error-occurred-while-installing-mysql2-0-3-11/18840114 the workings and policies of this site About Us Learn more about https://teamtreehouse.com/community/resolved-mysql-error-gem-install-with-rails Stack Overflow the company Business Learn more about 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 is a community of 4.7 million programmers, just like you, helping each an error other. Join them; it only takes a minute: Sign up An error occurred while installing mysql2 (0.3.11) up vote 14 down vote favorite 7 I am a rails beginner,and I get a demo from https://github.com/rubytaiwan/jobs.ruby.tw but when I try to run this demo,I got an error. I run follow bundle I got the error An error occurred while while installing mysql2 installing mysql2 (0.3.11), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling. but I can sure I have install mysql2 and the Gemfile is source 'https://rubygems.org' ruby "1.9.3" gem 'rails', '~> 3.2.12' group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' # See https://github.com/sstephenson/execjs#readme for more supported runtimes gem 'therubyracer', :platforms => :ruby gem 'uglifier', '>= 1.0.3' end # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'devise', '~>2.1.3' gem 'mysql2' gem "babosa" gem "rails_autolink" gem "settingslogic" gem "seo_helper" gem 'open_graph_helper' gem 'google_plus_helper' gem 'exception_notification' gem "mobile-fu" gem 'capistrano', :group => "development" gem 'rake', :group => :test group :development do gem "capistrano" gem "magic_encoding" gem "annotate" end group :test, :development do gem "rspec" gem "rspec-rails" gem "simplecov" gem "capybara" end then I try to comment this row: gem 'mysql2' but I still got the error. so I do not know why this error occurs ruby-on-rails ruby share|improve this question asked Sep 17 '13 at 1:44 HXH 4092718 Windows or L
with Hampton's course on ActiveRecord Basics. In the Migrations video in Stage 2, the project is created using rails new biller -d mysql However, when I try I get an error when it tries to install mysql with gem install. Here is my console output Errno::EACCES: Permission denied @ rb_sysopen - /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/mysql2-0.3.16/MIT-LICENSE An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling. run bundle exec spring binstub --all /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/resolver.rb:352:in `resolve': Could not find gem 'mysql2 (>= 0) ruby' in the gems available on this machine. (Bundler::GemNotFound) from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/resolver.rb:165:in `start' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/resolver.rb:129:in `resolve' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/definition.rb:203:in `resolve' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/definition.rb:133:in `specs' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/definition.rb:178:in `specs_for' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/definition.rb:167:in `requested_specs' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/environment.rb:18:in `requested_specs' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:13:in `setup' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler.rb:120:in `setup' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/setup.rb:17:in `