DennisBB

web development that roxx
Get A Free Quote
  • Home
  • Portfolio
  • Services
  • Contact
  • About
< Web Site Launch!
Ajax in real XHTML >

Ruby 1.9.1 and Rails

I installed ruby 1.9.1 and was gonna upgrade my rails apps to Rails 2.3. These are the problems I ran into during the upgrade.

MySQL Gem

Automatic installation of mysql 2.8.1 gem for ruby 1.9.1 on Mac OS 10.5 doesn’t work. Here is how to install it manually.

1. First thing, check whether you meet requirements on mysql gem’s page.
Note: mysql 2.8.1 gem doesn’t support MySQL < 5.0.67 and 5.1.x family (according to this post).

2. Download it from their page on RubyForge. Unpack it, cd to its root directory. Run these commands.

ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config --with-mysql-dir=/usr/local/mysql
make
sudo make install

Ruby-Debug Gem

ruby-debugRuby-debug 0.10.3 gem doesn’t support ruby 1.9.x. If you have some important sites in rails, maybe you shouldn’t switch to ruby 1.9.x yet, as debugging will not be available.

UPDATE: Ruby-debug19 is now available for Ruby 1.9.

Tags: rails, ruby

This entry was posted on Tuesday, April 14, 2009 at 6:32 pm and is filed under Programming. 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.

Leave a Reply
Click here to cancel reply.

Terms of Use Privacy Policy
Copyright © 2010 DennisBB