I ran those commands and I thought everything was installed properly,
but I’m still having a mysql issue. I ran one of my rake commands for
my app and got…
!! 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
and then ran
gem install mysql
but got this…
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren’t both writable.
WARNING: You don’t have /Users/Erio/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Building native extensions. This could take a while…
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
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
checking for main() in -lmygcc… 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.
Any idea what is wrong with mysql?
Conrad T. wrote:
On Thu, Nov 5, 2009 at 11:39 PM, Eric Ee
[email protected]wrote:
which gem
This has been making my head spin all day. I really appreciate the
help. Are there any other commands I need to run to get everything
running smoothly in Snow Leopard?
This is great to hear. Also, make sure that you update your PATH
within your .profile to look exactly like the following:
export PATH=/usr/local/mysql/bin:${PATH}
The above statement is a very basic PATH and it should be sufficient
for now. Also, I would recommend installing the following gems if
you haven’t done so already:
sudo gem install rails
sudo gem install sqlite3-ruby
sudo env ARCHFLAGS=“-arch x86_64” gem install mysql –
–with-mysql-config=/usr/local/mysql/bin/mysql_config
sudo gem install mongrel
sudo gem install gemcutter
gem tumble
Note: The above assumes that you followed the MySQL installation
instructions here:
Ruby on Rails — Upgrading to Snow Leopard
Last but not least, there are many gems and the primary gem host is
located
at http://www.gemcutter.org.
Good luck,
-Conrad