Site menu:

Dependencies

To run Ruber, you need to have the following installed

Plugin dependencies

Some plugins need external libraries and/or programs to work. If you don’t have these requirements, then some of the plugins won’t work. Ruber itself and the other plugins will still work correctly, however. The programs needed by the plugins are:

Installing Ruber and its dependencies

The easy way

This is the recommanded way to install Ruber, and, if possible, you should always used this method. It makes use of the package manager provided by your distribution to install most of the required libraries, and uses rubygems to install Ruber and the gems which aren’t availlable as packages for your distribution. This is what you need to do:

The hard way

The hard way to install ruber is to install the needed dependencies by hand. In particular (depending on what you have already installed) this may mean installing ruby, the KDE libraries and the KDE Ruby bindings. If you want, you can also mix the easy and the hard way, installing some of the above programs using your package manager and some other by hand.

Warning: installing the hard way is much more difficult than using the easy way, so you’re advised not to use this method, unless absolutely needed (that is, if the easy method doesn’t work for some reason which can’t be fixed).

Installing Ruby by hand

Installing the KDE libraries by hand

I strongly discourage from building the KDE libraries by hand, given the large number of dependencies they have and the fact that every distribution has packages for them. To install using a package manager, simply install the kdelibs package.

If you really want to install by hand, here’s what to do

Installing the KDE Ruby bindings

First, Make sure you have both the Ruby and KDE headers installed. If you installed Ruby or the KDE libraries using the package manager, depending on your distribution, you may not have installed the header files needed by the compiler. Using your package manager, see if there are packages called something like ruby-devel and kdelibs-devel (or ruby-headers and kdelibs-headers). If so, install them. If you installed Ruby and the KDE libraries by hand, the header files are already installed. The next part of the installation changes depending on the version of KDE you’ve installed.

For KDE up to 4.6.x
For KDE from 4.7.0

Installing plugin dependencies

Building the API documentation

Ruber’s documentation is written in YARD format, using Textile as markup format. If you truly want, you can use RDoc to generate the documentation, but you’ll miss some information (in particular regarding signals and slots) and the formatting will be missing or wrong.

Building the documentation using YARD

Building the documentation using rdoc

Installing other plugins

Currently, the only way to install a plugin is to download the tarball and extract it in one of the directories where Ruber looks for plugins( by default, they are the plugins subdirectory of the Ruber installation directory and $KDEHOME/share/apps/ruber/plugins). This should create a subdirectory named as the plugin in that directory.

Using the development version of Ruber

If you want to use a version of Ruber which hasn’t as yet been released, you can download the source code from the git repository and install it by hand. To do so, make sure you have all the prerequisites installed, then download the source code doing one of the following:

Now, enter the directory where you’ve downloaded the source code and issue rake ruber. This is needed to generate files describing the user interface (mainly dialogs) from files produced by the Qt Designer program. Once this is done, you can run Ruber from this directory with the following command: ruby -Ilib bin/ruber. If you only want to try the development version once or twice, or if you want to help developing Ruber, that’s all you need to do. If you want to go on using it, and want to run it with a simple ruber, you’ll have to build a gem with gem build ruber.gemspec followed by gem install ruber-x.y.z.gem, where ruber-x.y.z is the file generated by the previous command.