I installed the following ruby packages from Ubuntu's repositories (this is on Edgy, the versions on Dapper are different):
Code:
$ dpkg -l |grep ruby
ii libatk1-ruby 0.15.0-1.1 ATK bindings for the Ruby language
ii libcairo-ruby 1.2.0-1 Cairo bindings for the Ruby language
ii libcairo-ruby1.8 1.2.0-1 Cairo bindings for the Ruby language
ii libdbm-ruby 1.8.2-1 DBM interface for Ruby
ii libdbm-ruby1.8 1.8.4-5ubuntu1 DBM interface for Ruby 1.8
ii libgdbm-ruby 1.8.2-1 GDBM interface for Ruby
ii libgdbm-ruby1.8 1.8.4-5ubuntu1 GDBM interface for Ruby 1.8
ii libgdk-pixbuf2-ruby 0.15.0-1.1 Gdk-Pixbuf 2 bindings for the Ruby language
ii libglib2-ruby 0.15.0-1.1 Glib 2 bindings for the Ruby language
ii libgtk2-ruby 0.15.0-1.1 GTK+ bindings for the Ruby language
ii libmysql-ruby 2.7.1-1 MySQL module for Ruby
ii libmysql-ruby1.8 2.7.1-1 MySQL module for Ruby 1.8
ii libopengl-ruby 0.32f-2ubuntu1 OpenGL binding for Ruby
ii libopenssl-ruby 1.0.0+ruby1.8.2-1 OpenSSL interface for Ruby
ii libopenssl-ruby1.8 1.8.4-5ubuntu1 OpenSSL interface for Ruby 1.8
ii libpango1-ruby 0.15.0-1.1 Pango bindings for the Ruby language
ii libqt0-ruby1.8-qt4 1.4.6-0ubuntu1 Qt4 bindings for Ruby
ii libreadline-ruby 1.8.2-1 Readline interface for Ruby
ii libreadline-ruby1.8 1.8.4-5ubuntu1 Readline interface for Ruby 1.8
ii libruby1.8 1.8.4-5ubuntu1 Libraries necessary to run Ruby 1.8
ii libsqlite3-ruby 1.1.0-2 SQLite3 interface for Ruby
ii libsqlite3-ruby1.8 1.1.0-2 SQLite3 interface for Ruby 1.8
ii libtcltk-ruby 1.8.2-1 Tcl/Tk interface for Ruby
ii libtcltk-ruby1.8 1.8.4-5ubuntu1 Tcl/Tk interface for Ruby 1.8
ii rdoc 1.8.2-1 Generate documentation from ruby source file
ii ruby 1.8.2-1 An interpreter of object-oriented scripting
ii ruby1.8 1.8.4-5ubuntu1 Interpreter of object-oriented scripting lan
ii ruby1.8-dev 1.8.4-5ubuntu1 Header files for compiling extension modules
ii ruby1.8-examples 1.8.4-5ubuntu1 Examples for Ruby 1.8
Of course you may not want all of those. The most important ones are ruby1.8-dev, rdoc, libreadline-ruby, libopenssl-ruby, libgdbm-ruby, libdbm-ruby.
Then I downloaded rubygems 0.8.11 and installed it via 'sudo ruby setup.rb'. Afterwards I had no problems installing stuff via gem, like for example 'sudo gem install ZenTest'.
Of course if you want to install some gem which builds a native extensions like for example rmagick you'll need the respective header files installed, in the example of rmagick you need libmagick9-dev.
As Woei sayed, installing everything ruby related your own without debian packages may look like a more clean solution. But then you end up playing with equivs to prevend packages like amarok bring with them Ubuntu's ruby and you need to set paths, etc. So far I am happy with having ruby core (and some more) come from Ubuntu and the rest via gem.
Bookmarks