manish
September 6, 2010, 7:55pm
1
ruby 1.8.7
gem 1.3.7
rails 3.0.0, 3.0.0.rc
when i write rails -v
error message come
Could not find gem ‘mysql2 <>=0, runtime>’ in any of the gem sources.
Try running ‘bundle install’.
when I run bundle install then also it cann’t install mysql2
please help me.
manish
September 7, 2010, 9:16am
2
On Sep 6, 2:55 pm, Manish N. [email protected] wrote:
Could not find gem ‘mysql2 <>=0, runtime>’ in any of the gem sources.
Try running ‘bundle install’.
when I run bundle install then also it cann’t install mysql2
mysql2 gem do not work under Windows (yet).
please use another adapter (mysql or sqlite3)
–
Luis L.
manish
September 7, 2010, 9:18am
3
Errr, this does not seem to be related to rails 3 it seems like you dont
have mysql.gem installed , try gem install mysql
manish
September 7, 2010, 4:06pm
4
You have a other rails 3 apps that are running with mysql2 on windows 7
and
this one doesnt work or you are not able to find th gem for windows 7?
manish
September 8, 2010, 11:03am
5
radhames brito wrote:
You have a other rails 3 apps that are running with mysql2 on windows 7
and
this one doesnt work or you are not able to find th gem for windows 7?
Hi radhames brito
This is my first application with rails 3 other application are with
rails 2.3.8
the same problem occurs with 3.0.0.rp this version also.
manish
September 8, 2010, 5:27pm
6
Then it could be that mysql2 is not supported
manish
September 8, 2010, 7:46pm
8
Manish N. wrote:
radhames brito wrote:
Then it could be that mysql2 is not supported
Then wht the solution?
From surfing net for so long what I got is this.
The mysql2 gem does not currently support Windows (although I hear they
are working on it). Just use the old mysql gem for now.
To be specific:
Put this line in your Gemfile:
gem 'mysql', '2.8.1'
Run bundle install
Make sure you use adapter: mysql and not adapter: mysql2 in your
database.yml.
This is how my system is currently set up, and it works fine with Rails
3.0.0.
manish
September 7, 2010, 11:42am
9
radhames brito wrote:
Errr, this does not seem to be related to rails 3 it seems like you dont
have mysql.gem installed , try gem install mysql
Hi
Thx for your quick help.
But the problem is that I have rails version[3.0.0, 3.0.0.rp, 2.3.8]
And my two version is working gud with mysql. Only in new version 3.0.0
it show error message.
I installed mysql gem . But the problem still exists.
manish
July 30, 2011, 8:14pm
10
Manish N. wrote in post #939302:
Manish N. wrote:
radhames brito wrote:
Then it could be that mysql2 is not supported
Then wht the solution?
From surfing net for so long what I got is this.
The mysql2 gem does not currently support Windows (although I hear they
are working on it). Just use the old mysql gem for now.
To be specific:
Put this line in your Gemfile:
gem 'mysql', '2.8.1'
Run bundle install
Make sure you use adapter: mysql and not adapter: mysql2 in your
database.yml.
This is how my system is currently set up, and it works fine with Rails
3.0.0.
thanks for that last specific info the bundle install now works on my xp
system including the mysql2 !