Mysql gem and the mkfm error
14th април, 2009
The mysql gem was removed from the rails 2.3.2. and you need to install it via the gem install mysql command
But! There is a problem compiling it. seems that the mysql cant find the libmysql so..here are the options:
yum install openssl openssl-devel
Configure with path to mysql_config and install the mysql api via gem:
# cd /usr/lib/ruby/gems/1.8/gems/mysql-2.7
# ruby extconf.rb --with-mysql-config=/usr/bin/mysql_config
# make
# ruby ./test.rb [hostname [user [passwd [dbname [port [socket [flag]]]]]]]
# make install
# gem install mysql
Source: http://www.linuxweblog.com/ruby-on-rails-install
And after that you can read the README.html located in the mysql gem directory :)
Debian/Ubuntu
sudo aptitude install libmysqlclient-dev libmysql-ruby libmysql++-dev ruby-dev
This entry was posted
on вторник, април 14th, 2009 at 5:44 pm and is filed under Rails.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.