12
Jun
Jun
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!
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:
\ 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'
........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 installSo far that seems to work!



Hi Nate,
Thanks for blogging this. I just ran into the exact same problem and your solution worked and saved me some frustration.
Adam
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.