jose@macbook [~/Development/clients/sequoyah] $ rake db:create
(in /Users/jose/Development/clients/sequoyah)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.
rake aborted!
Failed to lookup Init function
/usr/local/lib/ruby/site_ruby/1.8/i686-darwin9.3.0/mysql.bundle
(See full trace by running task with --trace)
I've already re-installed the mysql gem a million times (uninstall and
reinstall) and I still get this, any ideas?
--
Posted via http://www.ruby-forum.com/.
The only way I can get around this is to add the old mysql.rb file to
your RAILS_ROOT/lib folder (the one that was removed from edge rails).
This really bugs me though because I have to do this for every checkout,
every branch and I need to remember to not commit it.
If anyone has a real solution it would be very helpful!
Justin Halsall wrote:
> The only way I can get around this is to add the old mysql.rb file to
> your RAILS_ROOT/lib folder (the one that was removed from edge rails).
# ruby ./install.rb
to install the mysql.rb
Just learning so hang with me. I downloaded, unzipped and in terminal
ran # ruby ./install.rb which returned a new command line. Is there a
specific location the folder should sit in before the install command is
entered or a directory I should be in first?
Thanks in advance
Thanks again
Brian Hogan wrote:
> You get around this by actually installing the MySQL gem with C
> bindings. The one you guys are talking about is the pure Ruby one.
>
> The pure-MySQL library is terrible for performance and can cause some
> seriously flaky stuff. There are a number of posts on tis list that
> discuss the installation of that library.
>
> If you're getting the error relating to
>
> /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle
>
> then you have a half-installed mysql driver and I bet you're on a Mac.
>
> The solution that worked for me was to do this:
>
> http://www.napcsweb.com/blog/2007/06/01/mysql-gem-on-osx/
>
> I hope that helps!
>
> On Wed, Dec 10, 2008 at 7:27 PM, Shawn Cheatham
--
Posted via http://www.ruby-forum.com/.
sudo gem install mysql --
--with-mysql-config=/usr/local/mysql/bin/mysql_config