keyongtech


  keyongtech > ruby > 12/2008

 #1  
12-12-08, 02:36 PM
James Coglan
[Note: parts of this message were removed to make it a legal post.]

Hi list,

I'm trying to test a gem (managed with Hoe) on my Ubuntu machine. The Ruby
from the Ubuntu repos is 1.8.7, but the last version I tested this gem on
was 1.8.6, where all the tests pass. Now some of the tests are failing so I
need to test across multiple versions at once. Can someone point me to a
decent walk-through on install and running tests against several versions of
Ruby?
 #2  
12-12-08, 02:51 PM
Craig Demyanovich
[Note: parts of this message were removed to make it a legal post.]

Dr. Nic wrote something about this recently.

http://drnicwilliams.com/2008/12/11/...our-ruby-code/

Regards,
Craig
 #3  
12-12-08, 07:14 PM
James Coglan
[Note: parts of this message were removed to make it a legal post.]

2008/12/12 Craig Demyanovich <cdemyanovich>

> Dr. Nic wrote something about this recently.
>
> [..]
>
> Regards,
> Craig
>



Thanks for that. On first running the "multiruby -e 'p 1+1'" command, it
downloads 1.8.7 and 1.9.0 then starts building them, but hangs when it gets
to "creating Makefile". Anybody else get this and know how to fix it? I have
build-essential and ruby1.8-dev installed and the build doesn't report
errors, it just hangs.
 #4  
12-13-08, 07:26 PM
Ryan Davis
On Dec 12, 2008, at 11:14 , James Coglan wrote:

> 2008/12/12 Craig Demyanovich <cdemyanovich>
>
>> Dr. Nic wrote something about this recently.
>>
>> [..]

>
> Thanks for that. On first running the "multiruby -e 'p 1+1'"
> command, it
> downloads 1.8.7 and 1.9.0 then starts building them, but hangs when
> it gets
> to "creating Makefile". Anybody else get this and know how to fix
> it? I have
> build-essential and ruby1.8-dev installed and the build doesn't report
> errors, it just hangs.


ruby 1.9.0 has a makefile bug that prevents parallel builds from
working correctly. You can either install one of the latest 1.9
releases [1], go from trunk, or cd into the build dir and type `make`
to bypass the bug.

[1] http://drnicwilliams.com/2008/12/11/...our-ruby-code/
 #5  
12-14-08, 03:32 AM
Marc Heiler
> Can someone point me to a decent walk-through on install
> and running tests against several versions of Ruby?


I wouldn't recommending "my" way of doing it but I compile Ruby
into versioned directories (from source), i.e. under
/Programs/Ruby/1.9.0 for instance. A symlink will point to the version
to use, to switch versions one just adjusts the symlink (and
"resymlinks" in case one follows something akin to
http://www.gobolinux.org/ )

However, I think pretty all Linux distributions do not enjoy this idea
and instead scatter files into /usr prefix (when it comes from the
"package manager" of the distribution in question), or /usr/local (if a
user compiled on his own, though many people use $HOME prefix, and some
even use /opt which I find extremely peculiar since I saw some
distributions using pseudo-versioned dirs inside /opt i.e. "/opt/kde3"
...)
Similar Threads
Buiulding multiple versions of Ruby

This is the way that I build ruby from the latest svn sources. This allows me to have multiple versions and to compare the performance/behaviour of my builds against the...

Running Multiple Versions of Ruby on Debian?

Well so far things are going kind of good, I've built my own server and it's sitting in colo running Debian Etch and Ruby 1.8.6 (built from source) Now me being me I...

A service for testing Python code on multiple platforms and versions

Hopefully a service like this already exists and I just haven't found it yet. If not it could be an idea for some kind soul(s) to pick up and run with ;-) As someone who...

Multiple Versions of Ruby on same machine

I'd like to include a complete version of Ruby, including all the necessary libs, in the source tree for our internal app. That will allow our unit tests/QA procedure/app...

Testing Turbo Pro versions?

Hi, Is there a way to trial the Borland Turbo Delphi Pro version? We're currently using Delphi 2006, but we would like to know if it'll compile on Turbo versions. Since we...


All times are GMT. The time now is 05:46 AM. | Privacy Policy