[Rubygems-developers] Customising Rubygems for Debian/Ubuntu.

Neil Wilson neil at brightbox.co.uk
Fri Jun 27 04:14:05 EDT 2008

2008/6/27 Eric Hodel <drbrain at segment7.net>:
> Is this for `gem` itself or for a gem-installed executable?

It is for the gem installed exectuable. Gem would install, say,
'mongrel_rails1.8'  and then call 'update-alternatives' so that the
alternatives system creates the necessary symlinks allowing the user
to run 'mongrel_rails'.

Rubygems is installed by 'apt' and 'apt' takes care running 'update
alternatives' for the 'gem' command. Hence why I want 'update
--system' to divert to running 'apt-get'.

The general idea is that when the user switches versions of ruby -
between 1.8, 1.9, rubinus or jruby the alternatives system causes the
symlinks to switch and follow the 'current' flavour of Ruby.

That and finally getting installed gem binaries on the PATH in
Debian/Ubuntu without violating their file systems policy...

In theory then apt packages generated from gems and gems installed
directly will co-operate with each other. The nirvana of automatic
apt-packages generated directly from gems should then by a SMOP (he
says idealistically :-)

Neil Wilson

More information about the Rubygems-developers mailing list