Please advise...Install Ruby from Debian Package or Source?

I'd like to install Ruby on a Debian server.

Is it better to install the latest stable snapshot or install the Debian package? What are the pros and cons?

I noticed the Debian package for Ruby is split up into numerous packages. I don't mind this but I'm wondering how often the Debian Ruby package will be updated with fixes from Ruby 1.8.2 branch.

And I'm not sure how Debian's Ruby package corresponds (if at all) to a stable snapshot. For example, the current package is 1.8.2 2004-12-06 which is after preview3--and I'm not sure if it is a stable snapshot from 12-06 or if that date is the date of the Debian package.

I'm also wondering if there are any problems caused by using Debian's Ruby package with something like RubyGems where one doesn't know what the other installed.

Any advice would be appreciated.

On Ubuntu, a debian derived distribution I use this approach: apt-get
for everything available there, rubygems for the packages not
available in apt (rails and its dependencies so far).

The only annoyance is that you have to apt-get install lots of
packages when you first setup the machine because ruby is split in
several parts, other than that everything is fine.

···

I'd like to install Ruby on a Debian server.

Is it better to install the latest stable snapshot or install the Debian
package? What are the pros and cons?

I'd like to install Ruby on a Debian server.

Is it better to install the latest stable snapshot or install the Debian
package? What are the pros and cons?

Some of them are:

if you install the package, you can install other packages
that depend on ruby.

if you tar-make-install the stable snapshot, the system
won't know that you have ruby installed.

packaged libraries are more convenient to install (which is equally
true for apt, gems and rpa)

For some time, I had a dual setup: packaged ruby below /usr
snapshot below /usr/local with PATH and #! preferring /usr/local.

I'm also wondering if there are any problems caused by using Debian's
Ruby package with something like RubyGems where one doesn't know what
the other installed.

you can confuse your system, if you install the same library twice
and remove one.

s.

···

On Sat, 18 Dec 2004 18:44:17 GMT, Thursday <nospam@nospam.nospam.nospam.nospam.org> wrote:

Debian does this with all languages, but it's very good in the long
run for doing so. There is little distinction between the stdlib and
other packages, and you upgrade all at will....

Perl is this way, Python is that way, etc. It's a little annoying
the first time you want to get Rails or something running but just
check each error message to find the missing deps...

···

On Sun, 19 Dec 2004 04:47:14 +0900, Stefan Schmiedl <s@xss.de> wrote:

On Sat, 18 Dec 2004 18:44:17 GMT, > Thursday <nospam@nospam.nospam.nospam.nospam.org> wrote:
> I'd like to install Ruby on a Debian server.
>
> Is it better to install the latest stable snapshot or install the Debian
> package? What are the pros and cons?

Some of them are:

if you install the package, you can install other packages
that depend on ruby.

if you tar-make-install the stable snapshot, the system
won't know that you have ruby installed.

packaged libraries are more convenient to install (which is equally
true for apt, gems and rpa)

For some time, I had a dual setup: packaged ruby below /usr
snapshot below /usr/local with PATH and #! preferring /usr/local.

> I'm also wondering if there are any problems caused by using Debian's
> Ruby package with something like RubyGems where one doesn't know what
> the other installed.

you can confuse your system, if you install the same library twice
and remove one.

s.

* Michael DeHaan [Sunday, December 19, 2004 00:42] {comp.lang.ruby}:

Debian does this with all languages, but it's very good in the long
run for doing so. There is little distinction between the stdlib and
other packages, and you upgrade all at will....

but having an easy way of installing all of those packages would be useful
for less experienced people. I can easily find out the list of such
packages, but I realize that may not be the case of other people.

for that purpose, I just submitted #286400 (http://bugs.debian.org/286400).

···

--
Adeodato Simó
    EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
    Listening to: Luke Vibert - 2001 beats

Beauty, brains, availability, personality: pick any two.

Adeodato Simó wrote:

* Michael DeHaan [Sunday, December 19, 2004 00:42] {comp.lang.ruby}:

Debian does this with all languages, but it's very good in the long
run for doing so. There is little distinction between the stdlib and
other packages, and you upgrade all at will....

but having an easy way of installing all of those packages would be useful
for less experienced people. I can easily find out the list of such
packages, but I realize that may not be the case of other people.

for that purpose, I just submitted #286400 (http://bugs.debian.org/286400).

Great point. Virtual ruby package(s) or at least documenting commonly installed packages would be nice.

Here's the one-liner shell script I used to install ruby on Debian Sarge. And a commented-out, longer version that is recommended for rails.

#!/bin/sh

### command used to install ruby (1.8.2 2004-12-06)
### enough for installing rubygems from source
### and supports 'gem install activerecord'
apt-get install ruby ruby1.8 ruby1.8-examples libyaml-ruby1.8 libdbm-ruby1.8 libopenssl-ruby1.8 liberb-ruby1.8 libsyslog-ruby1.8 libtest-unit-ruby1.8 ruby1.8-dev libruby1.8 libiconv-ruby1.8 libzlib-ruby1.8 rdoc1.8 libreadline-ruby1.8 irb1.8

### these are all the packages recommended for rails
### commented out in this script, but kept around for reference
#apt-get -s install irb1.8 libbigdecimal-ruby1.8 libcurses-ruby1.8 libdbm-ruby1.8 libdl-ruby1.8 libdrb-ruby1.8 liberb-ruby1.8 libgdbm-ruby1.8 libiconv-ruby1.8 libopenssl-ruby1.8 libpty-ruby1.8 libracc-runtime-ruby1.8 libreadline-ruby1.8 librexml-ruby1.8 libruby1.8 libruby1.8-dbg libsdbm-ruby1.8 libsoap-ruby1.8 libstrscan-ruby1.8 libsyslog-ruby1.8 libtcltk-ruby1.8 libtest-unit-ruby1.8 libtk-ruby1.8 libwebrick-ruby1.8 libxmlrpc-ruby1.8 libyaml-ruby1.8 libzlib-ruby1.8 rdoc1.8 ri1.8 ruby1.8 ruby1.8-dev ruby1.8-elisp ruby1.8-examples