Restart u'r computer or start u'r mysql server.Bassically this error occur
due to not running of mysql server.

On Tue, Apr 7, 2009 at 4:23 PM, Gavin <ga...@thinkersplayground.com> wrote:

>
> Hey all-
>
> Re-installed OSX yesterday and with it, Ruby and Rails
>
> Now when I try to run db:migrate I get the error message:
>
> "!!! 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!
>
> no such file to load -- mysql"
>
>
> So, I try sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
>
> And get:
> ##########
>
> Building native extensions.  This could take a while...
> ERROR:  Error installing mysql:
>        ERROR: Failed to build gem native extension.
>
> /usr/local/bin/ruby extconf.rb install mysql -- --with-mysql-dir=/usr/
> local/mysql
> checking for mysql_query() in -lmysqlclient... no
> checking for main() in -lm... yes
> checking for mysql_query() in -lmysqlclient... no
> checking for main() in -lz... yes
> checking for mysql_query() in -lmysqlclient... no
> checking for main() in -lsocket... no
> checking for mysql_query() in -lmysqlclient... no
> checking for main() in -lnsl... no
> checking for mysql_query() in -lmysqlclient... no
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers.  Check the mkmf.log file for more
> details.  You may need configuration options.
>
> Provided configuration options:
>        --with-opt-dir
>        --without-opt-dir
>        --with-opt-include
>        --without-opt-include=${opt-dir}/include
>        --with-opt-lib
>        --without-opt-lib=${opt-dir}/lib
>        --with-make-prog
>        --without-make-prog
>        --srcdir=.
>        --curdir
>        --ruby=/usr/local/bin/ruby
>        --with-mysql-config
>        --without-mysql-config
>        --with-mysql-dir
>        --with-mysql-include
>        --without-mysql-include=${mysql-dir}/include
>        --with-mysql-lib
>        --without-mysql-lib=${mysql-dir}/lib
>        --with-mysqlclientlib
>        --without-mysqlclientlib
>        --with-mlib
>        --without-mlib
>        --with-mysqlclientlib
>        --without-mysqlclientlib
>        --with-zlib
>        --without-zlib
>        --with-mysqlclientlib
>        --without-mysqlclientlib
>        --with-socketlib
>        --without-socketlib
>        --with-mysqlclientlib
>        --without-mysqlclientlib
>        --with-nsllib
>        --without-nsllib
>        --with-mysqlclientlib
>        --without-mysqlclientlib
>
>
> Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/
> mysql-2.7 for inspection.
> Results logged to /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/
> gem_make.out
>
> ##############
>
> This seems to have been covered already here:
>
> http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/d940897270e944e0/fcb2c750fba22014?lnk=gst&q=Could+not+create+Makefile+due+to+some+reason%2C+probably+lack+of#fcb2c750fba22014
>
> but I can't really follow what's happening there :S
>
> Could anybody advise?
>
> Ruby -v: ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin8.11.1]
> Rails -v: Rails 2.3.2
> All gems updated
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to