Yet another note for myself…
At work I run Linux Mint 12 on my workstation and needed to install cucumber on top of jruby. The reason for choosing jruby is another story.
At first I tried to do with the pre-build packages for Mint, but did not have any luck. Then Frank told me to use rvm (Ruby Version Manager), and that was a good advice. It took me less than 10 minutes to get up and running. This was what I did:
To install rvm (Ruby Version Manager):
# curl -L https://get.rvm.io | bash -s stable --ruby
The installation adds this line to .bash_login:
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
On my system, bash only reads .bashrc on login – not .bash_login – so I had to choose one of the following solutions. Since my .bash_login originally was empty, thus only had the stuff that rvm added, and I since I’m a lazy bastard I did this.
# echo ~/.bash_login >> ~/.bashrc
Which is basically the same as:
# echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
But I guess you just as well can include .bash_profile in .bash_rc like this
# echo 'source ~/.bash_login' >> ~/.bashrc
Now you can install jruby using rvm:
# rvm install jruby
Set jruby to be the active ruby
# rvm use jruby
Now Install cucumber using jruby’s gem
# gem install cucumber
And I was ready to go…