Using Ruby with RVM 1.12

I just installed Ubuntu 11.10 and RVM 1.12.4 (stable):

doug@doug-OnixN53SM:~$ curl -L get.rvm.io | bash -s stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    223      0 --:--:-- --:--:-- --:--:--   968
100  8545  100  8545    0     0   5888      0  0:00:01  0:00:01 --:--:--  5888
Downloading RVM from wayneeseguin branch stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0    210      0 --:--:-- --:--:-- --:--:--   272
100  992k  100  992k    0     0   293k      0  0:00:03  0:00:03 --:--:--  488k

Installing RVM to /home/doug/.rvm/
    Adding rvm PATH line to /home/doug/.bashrc /home/doug/.zshrc.
    Adding rvm loading line to /home/doug/.bash_login /home/doug/.zlogin.

# RVM:  Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm/
# Screencast: http://screencasts.org/episodes/how-to-use-rvm

# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'

Installation of RVM in /home/doug/.rvm/ is almost complete:

  * To start using RVM you need to run `source /home/doug/.rvm/scripts/rvm`
    in all your open shell windows, in rare cases you need to reopen all shell windows.

# doug,
#
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne

After that, I installed Ruby 1.9.3. And to use it, I just do:

$ rvm use 1.9.3

RVM is not a function, selecting rubies with 'rvm use ...' will not work.
Please visit https://rvm.io/integration/gnome-terminal/ for a solution.

This new version of RVM seems to need some configurations. But I do not quite understand what to do with this page: https://rvm.io/integration/gnome-terminal/ .

Do you know what steps I should take? Thank.

+3
source share
2 answers

You need to add this line to your .zshrc:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function

Then reload:

source ~/.zshrc
+9
source

This post will help me. You can try the following:

RVM seems to fluctuate between function, not. It was and then:

scytale @dur: ~ $ scytale @dur: ~ $ rvm system

RVM , "rvm use...", . scytale @dur: ~ $scytale @dur: ~ $type rvm | head -1 rvm hashed (/home/scytale/.rvm/bin/rvm) scytale @dur: ~ $scytale @dur: ~ $source /home/scytale/.rvm/scripts/rvm scytale @dur: ~ $scytale @dur: ~ $type rvm | head -1 rvm - scytale @dur: ~ $scytale @dur: ~ $rvm system @: ~ $

, , , , - :

$script foo.txt... somethinng rvm... $exit

, rvm , script. , bashrc .., . ?

0

All Articles