This page explains how to install the standard Ruby or JRuby flavors of rubyrep.
If you just want to get started in the quickest way, choose JRuby.
For more background information, here a comparison between both flavors:
|Standard Ruby flavor||JRuby flavor|
|Capabilities||exactly the same|
|Performance||slower||faster (by about one third)1|
|Ease of installation||harder||easier (more info)|
1 rubyrep command startup time under JRuby is slower though (around 9 seconds). Under standard Ruby it is not noticable.
Installing the JRuby version
Pre-condition: Java is installed (tested with version 1.6; version 1.5 might also work).
- Download the latest JRuby rubyrep package from Rubyforge.
(There are different files available. Choose the ZIP package.)
rubyrep command (through which everything is controlled) is available in the created folder.
Installing the standard Ruby version
- Install the Ruby environment1
- Install the database driver.
sudo gem install postgres
sudo gem install mysql
will do the trick.
- Install rubyrep
sudo gem install rubyrep
After installation, the
rubyrep command will be placed in the path.
1 Explanation not in the scope of this document, refer to this site for some pointers.
Next step would be to configure rubyrep for whatever you want it to do.
Head to the tutorial for guides to typical scenarios.