building 1.8.7 on ubuntu 9.10

M

msoulier

I prefer to make use of my own ruby build for the most part, and for
experimentation. I'm running Ubuntu 9.10 and I was surprised when I
had issues building ruby 1.8.7 on it.

First, I had to dig to find 1.8.7, there were no links on the main
ruby website. Meanwhile Rails recommends 1.8.7.

Then, math.c wouldn't compile due to an error exposed by gcc4. I fixed
that.

Once built, the unit tests failed on floats, as something was causing
the interpreter to drop decimals in floats. ie. I entered 2.6 and got
26 instead.

Now, 1.8.7 is built on ubuntu so I looked and it's 1.8.7-p174. Indeed,
that does build fine. So, my question is, why doesn't the latest 1.8.7
build?

Thanks,
Mike
 
J

Joel VanderWerf

msoulier said:
I prefer to make use of my own ruby build for the most part, and for
experimentation. I'm running Ubuntu 9.10 and I was surprised when I
had issues building ruby 1.8.7 on it.

First, I had to dig to find 1.8.7, there were no links on the main
ruby website. Meanwhile Rails recommends 1.8.7.

Then, math.c wouldn't compile due to an error exposed by gcc4. I fixed
that.

Once built, the unit tests failed on floats, as something was causing
the interpreter to drop decimals in floats. ie. I entered 2.6 and got
26 instead.

Now, 1.8.7 is built on ubuntu so I looked and it's 1.8.7-p174. Indeed,
that does build fine. So, my question is, why doesn't the latest 1.8.7
build?

I remember seeing this with gcc-4.4 and some *older* ruby patchlevels,
but that problem seems to have gone away more recently.

I'm using ubuntu 9.10 with:

$ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
$ gcc --version
gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top