From: botp on
On Tue, Aug 10, 2010 at 10:51 PM, Matt Mencel <MR-Mencel(a)wiu.edu> wrote:
> Another reason for me to dislike Solaris SPARC.

you may let ruby do the work for you :)
try ruby 1.9

eg,

$ ruby -ve 'puts("#{(-1.size==4?32:64)}bit", Time.at(4102380000))'
ruby 1.9.2dev (2010-07-11 revision 28618) [i686-linux]
32bit
2099-12-31 14:00:00 +0800

best regards -botp

From: Matt Mencel on
Solaris 10 SPARC is 64bit. It may be the ruby version I have installed was compiled for 32bit? It's an older version of 1.8.7 off of sunfreeware.com. I noticed that sunfreeware has a newer 1.9.1 version available there now so I think I'll upgrade ruby to 1.9.1 and see what happens.

Thanks,
Matt


----- Original Message -----
From: "botp" <botpena(a)gmail.com>
To: "ruby-talk ML" <ruby-talk(a)ruby-lang.org>
Sent: Tuesday, August 10, 2010 9:18:30 PM
Subject: Re: Error: Bignum too big to convert into `long'

On Tue, Aug 10, 2010 at 10:51 PM, Matt Mencel <MR-Mencel(a)wiu.edu> wrote:
> Another reason for me to dislike Solaris SPARC.

you may let ruby do the work for you :)
try ruby 1.9

eg,

$ ruby -ve 'puts("#{(-1.size==4?32:64)}bit", Time.at(4102380000))'
ruby 1.9.2dev (2010-07-11 revision 28618) [i686-linux]
32bit
2099-12-31 14:00:00 +0800

best regards -botp


From: Brian Candler on
Matt Mencel wrote:
> Solaris 10 SPARC is 64bit. It may be the ruby version I have installed
> was compiled for 32bit? It's an older version of 1.8.7 off of
> sunfreeware.com. I noticed that sunfreeware has a newer 1.9.1 version
> available there now so I think I'll upgrade ruby to 1.9.1 and see what
> happens.

Remember that ruby 1.9 is a significantly different language to ruby
1.8. Unless you are lucky, or fancy modifying your app to work with 1.9
(and maybe its dependent libs too), I think you'd be better off finding
a 64-bit build of ruby 1.8.7.
--
Posted via http://www.ruby-forum.com/.

 | 
Pages: 1
Prev: "NaN".to_f revisited
Next: [ANN] Inochi 5.0.2