Ruby Installation

T

Tom Mac

Hi
I have installed ruby from fedora repository (fedora12) with

yum install ruby ruby-devel ruby-docs ruby-irb ruby-libs ruby-mode
ruby-rdoc ruby-ri

And I got ruby --version
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-linux]

This I did 2 months back . Now I am asked to repeat this process on
another machine. So my question is where can I find the same above
version with same patch . I looked in
www.ruby-lang.org It says about 1.8.7 and 1.9.1

My second question is if I install 1.8.7 from source on the next
machine, will the application work? So what is the preferred way
Installing ruby from source or from a repository like fedora in my case?


Thanks
Tom
 
B

Brian Candler

Tom said:
Hi
I have installed ruby from fedora repository (fedora12) with

yum install ruby ruby-devel ruby-docs ruby-irb ruby-libs ruby-mode
ruby-rdoc ruby-ri

And I got ruby --version
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-linux]

This I did 2 months back . Now I am asked to repeat this process on
another machine. So my question is where can I find the same above
version with same patch . I looked in
www.ruby-lang.org It says about 1.8.7 and 1.9.1

ftp.ruby-lang.org has all the previous version releases.
My second question is if I install 1.8.7 from source on the next
machine, will the application work?

Probably. There are a number of changes in the ruby language for 1.8.7,
such that a program written for 1.8.7 may well not work in 1.8.6, but
one written for 1.8.6 probably works in 1.8.7.
So what is the preferred way
Installing ruby from source or from a repository like fedora in my case?

If your distribution has a decent ruby repo, usually it's a good idea to
use that. Your distribution should be keeping track of things like
security updates and you will automatically get a fixed version if you
need it. It also saves hassles in compilation (e.g. if you don't have
the openssl-dev or zlib-dev packages installed when building yourself,
then important ruby extensions won't be built)

HTH,

Brian.
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top