Using the C API MySQL module for Ruby, let Rails connect to MySQL faster!

Thursday, March 18, 2010

MySQL/Ruby Home Page

apt-get install libmysqlclient16-dev
wget http://rubyforge.org/frs/download.php/69181/mysql-ruby-2.8.2.tar.gz
tar zxvf mysql-ruby-2.8.2.tar.gz
cd mysql-ruby-2.8.2/
ruby extconf.rb --with-mysql-dir=/usr/local/mysql
make
make install

http://gist.github.com/336131

This entry was tagged Linux, MySQL, Rails and Ruby

comments powered by Disqus

© 2009-2013 lxneng.com. All rights reserved. Powered by Pyramid

go to Top