I'm trying to to 'gem install mysql' because it keeps saying that the
libraries i'm using for mysql are not fit for production.
the packages i have installed for ubuntu hardy 8.04 are:
mysql-client-5.0
mysql-client-5.0
i am running rails 1.87 and gem 1.2.0
here are my results:
root@webapp1:/u1/app/wonderland/log# gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install 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... yes
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 else i might need to install?
here are some other packages that i might need but i don't want to break
production if i don't have to:
p libdbd-mysql-ruby - Ruby/DBI driver for MySQL
p libdbd-mysql-ruby1.8 - Ruby/DBI MySQL driver for Ruby 1.8
p libmysql5.0-cil - MySQL database connector for CLI
rails will place the warning below in your log
file if the mysql gem is not being used:
"WARNING: You're using the Ruby-based MySQL library that
ships with Rails. This library is not suited for production.
Please install the C-based MySQL library instead (gem install mysql)."