Alaveteli problem with Ruby 1.8.7p358

7 views
Skip to first unread message

Robin Houston

unread,
Aug 10, 2012, 5:49:33 AM8/10/12
to alavet...@googlegroups.com
The version of Ruby that ships with OS X 10.8 (Mountain Lion), which is patchlevel 358, seems to have a bug that breaks Alaveteli.

On my machine at least, running /usr/bin/ruby -e 'puts 2**97' prints 0, rather than a big number.

I’ve just merged Henare’s patch that configures rvm to use p370, which seems to be okay.

It would be interesting if anyone else could confirm this bug. In Alaveteli it manifests itself as an error wrong number of arguments (1 for 0) on alaveteli/commonlib/rblib/util.rb:18:in `to_s'.

Cheers,
Robin

Henare Degan

unread,
Aug 10, 2012, 11:05:58 PM8/10/12
to alavet...@googlegroups.com
I don't see that problem with RVM-installed p358 on Linux (Ubuntu):

$ rvm use 1.8.7-p358
Using /home/henare/.rvm/gems/ruby-1.8.7-p358
$ ruby -e 'puts 2**97'
158456325028528675187087900672
$

And all the Alaveteli test pass. RVM applies a couple of patches but I don't think that's got anything to do with it, it must be something to do with the Ruby that ships with OS X.

Cheers,

Henare
Reply all
Reply to author
Forward
0 new messages