11155
(-- --)
October 21, 2011, 4:23pm
1
hello i have problem while install gem mysql2 in windows 7 i have got
error
An error occurred while installing mysql (0.3.7), and Bundler cannot
continue. Make sure that 'gem install mysql2 -v '0.3.7'' succeeds before
bundling.
Please help me i want to codding with rails
Have you installed mysql in windows7?
11155
(-- --)
October 21, 2011, 4:45pm
3
yes i have installed it, and i have installed devkit
11155
(-- --)
October 21, 2011, 4:53pm
4
Javier Quarite wrote in post #1027810:
Have you installed mysql in windows7?
yes i have installed it, and i have installed devkit
When I was starting with rails I had the same trouble, first I didn’t have mysql
then I had to add
gem “mysql2”
to my Gemfile and the run bundle install
after that everything worked…
PD: I use ubuntu… I’m not sure how it works in windows, maybe railsinstaller install mysql2, I haven’t tried it yet
Here, I'm already pass for it.
you have to install the mysql gem not the mysql2 gem.
mysql2 gem don't work on Windows 7 only on Windows XP.
but using mysql will be the same thing...
http://blog.allanfreitas.com.br/ruby/rubyonrails/problema-rubyonrails-e-mysql-no-windows-7
Allan Freitas
Desenvolvedor e Analista Web / Web Developer and Analist
Email/Gtalk: allanfreitasci@gmail.com
Msn: eu@allanfreitas.com.br
Please read the following article:
http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/
Instructions are the same except change to mysql2
You will need to install the gem *before* adding it to the Gemfile
since it requires configuration options (--with-mysql...)
HTH,