Vista, MySQL, Rails 2.2, and the "The bundled mysql.rb driver has been removed from Rails 2.2" error message

View: New views
1 Messages — Rating Filter:   Alert me  

Vista, MySQL, Rails 2.2, and the "The bundled mysql.rb driver has been removed from Rails 2.2" error message

by housewife :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Martin Krauskopf wrote:
> Chris Kutler wrote:

>
> > I have once again received email from a NetBeans Ruby customer who is

> > getting the "bundled mysql.rb driver has been removed from Rails 2.2"

> > error message. See

> > http://www.nabble.com/mysql-problem-with-rake-db%3Acreate-JRuby-Vista-Rails-2.2.2-to20941612.html#a20941612 

> > for the previous incident.

> >

> > This is not a NetBeans issue, but is an issue that apparently arose with

> > Rails 2.2. I am sending it to the address-removed alias both in

> > hopes that someone knows the answer and so that other NetBeans Ruby

> > users can learn that the issue is not caused by the IDE.

> >
> [...]

>
> > When he tries to run a unit test on a Rails app, he gets the following

> > message (but note that the file

> > c:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so

> > exists).

> >
> [...]

>

> Huw Collingbourne seems to solve this:

>

> http://www.sapphiresteel.com/Rails-2-2-and-MySQL-Problems

>

> Check also explanation by Luis Lavena in the comments section.

>

> m.






************* REPLY ***********



Hi there,



I am working in a NetBeans IDE environment. So, I have solved the problem by doing the following:



Because sql.rb driver is no longer bundled with Rails 2.2 and upper versions and I needed to find ways for my Ruby 2.8 and MySql 5.0 programs to communicate, I have downloaded the GZ file called    mysql-ruby-2.8.1.tar

I have placed this file on my home path, which is:



Users\ZoulfiaHall\mysql-ruby-2.8.1.tar.

If you do not really know what home path is, create a simple file in ruby and write the following code:



ENV.each {|e| puts e.join(':')



Run this code and you will see the home path there.



To be on a safe side, I also placed the above .tar file in :



C:/ProgramFiles/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/gems/mysql-ruby-2.8.1.tar.



Because I am using a Ruby program as my second Ruby Platfom in NetBeans IDE, I have pasted  the same file there as well:



c:/Ruby/lib/ruby/gems/1.8/gems/mysql-ruby-2.8.1.tar



I have restarted my NetBeans IDE, then I opened my ruby-on-rails project, right clicked on the project, then clicked on 'Run/Debug Rake Task..', typed in Filter: db,clicked on db:migrate from the list of options and clicked on Run.



It worked for me. I do hope, it will work for you as well.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...