ruby-on-rails - what - ruby wikipedia
Si รจ verificato un errore durante l'installazione di mysql2(0.3.11) (2)
@ Ricardo Masao Shigeoka per il mac, prova prima
brew install mysql, then
put in your Gemfile
gem 'mysql 2', '0.3.18'
run bundle
Questa configurazione ha funzionato per me, ho El Captain OS, rail 4.2.6, spero che questo aiuti
Sono un principiante di rails e ricevo una demo da https://github.com/rubytaiwan/jobs.ruby.tw
ma quando provo a eseguire questa demo, ho ricevuto un errore.
Io corro seguire
bundle
Ho avuto l'errore
An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling.
ma posso sicuramente installare mysql2
e il Gemfile
è
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
poi provo a commentare questa riga:
gem 'mysql2'
ma ho ancora ottenuto l'errore. quindi non so perché questo errore si verifica
Prova questo
gem 'mysql2', '~> 0.4.10'