New-formula-starburst

Trouble with Ruby 1.8.7 and Rails

2
I went to download a fresh copy of Ruby the other day, and noticed that they quietly released 1.8.7 and are promoting it as the recommended install now. I haven’t heard much about its compatibility with Rails, but I was curious about the performance enhancements backported from 1.9. So, I downloaded it … and …. bam!
\ FAILSAFE /!\  Thu Jun 12 21:50:31 -0700 2008
  Status: 500 Internal Server Error
  wrong number of arguments (2 for 1)
    /usr/local/lib/ruby/1.8/cgi/session.rb:267:in `respond_to?'
    /usr/local/lib/ruby/1.8/cgi/session.rb:267:in `initialize_without_cgi_reader'
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/session.rb:39:in `initialize'
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:130:in `new'
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:130:in `session'
........
A little Googling, and I discover that there is a subsequent patchlevel that addresses this problem. I downloaded 1.8.7-p17 and it seems to get past this one. To compile and install on my Mac:
tar zxvf ruby-1.8.7-p17.tar.gz
cd ruby-1.8.7-p17
./configure --enable-shared --enable-pthread CFLAGS=-D_XOPEN_SOURCE=1
make
sudo make install

So far that seems to work!

Comments

  • Avatar Adam Soltys said about 22 hours later:

    Hi Nate,

    Thanks for blogging this. I just ran into the exact same problem and your solution worked and saved me some frustration.

    Adam

  • Avatar Bret said 7 days later:

    Just wanted to add my thanks. Mind if I asked how you figured this out? A week ago, all I could find by Googling was a few posts by people who thought the problem was with their plugins.

Trackbacks

Use the following link to trackback from your own site:
/articles/trackback/19492

(leave url/email »)

   Comment Markup Help Preview comment