Any good tutorial about upgrade ruby to 1.9.1 and with rails 2.3?

Hi there,

Just want to upgrade to ruby1.9.1, but some important gems such as mysql, fastthread, mongrel are not compatible with the newest version, anyone has some good tutorial for recommendation?

Thanks,

chenillen

Try it out and report back? I haven't made the jump yet, but I'm sure someone will pipe up with recommendations at some point.

A Ruby 1.9 compatible version of mysql-ruby is available from its author's website: http://tmtm.org/mysql/ruby/.

Fastthread isn't needed to run mongrel under Ruby 1.9, the mongrel gem still seems to require it though. Tell rubygems to ignore its dependencies like so: gem install mongrel --ignore-dependencies.

If rubygems fails to build native extensions for mongrel try changing all occurences of RSTRING("FOOBAR")->ptr with RSTRING_PTR("FOOBAR") and similarly RSTRING("FOOBAR")->len with RSTRING_LEN("FOOBAR") in http11.c. Then try building again like so: ruby extconf.rb. Compile with make and install with make install. This might have already been fixed upstream though so try ignoring dependencies during installation first!

Best, Niels

chenillen wrote:

Hi, you should be able to find several threads if you search the mailing list. I created the following tutorial in regards to using both Ruby 1.9.1 and Rails 2.3.0:

“Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1”

Good luck,

-Conrad