简体   繁体   中英

Ubuntu server 10.04 LTS - How to install RVM?

These are the steps I have taken to install RVM:

  1. Installing Ruby: sudo apt-get install curl git-core ruby the which ruby command works

  2. Installing RVM:

    curl -L https://get.rvm.io | bash -s stable --ruby --rails --trace

My user is "loam" in the /home/loam/.bashrc I have added this to the last line of the file.

if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi

fi

And replaced [ -z "$PS1" ] && return with if [[ -n "$PS1" ]]; then if [[ -n "$PS1" ]]; then

When the RVM script was done I got the message:

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

And I did try it and got:

$ source /home/loam/.rvm/scripts/rvm
-sh: source: not found

Which rvm is blank .. I can see there is a .rvm folder in /home/loam

If I write:

$ $HOME
-sh: /home/loam: Permission denied

Update: I have also tried the Single-User Install Location: ~/.rvm/ .. And stil which rvm is blank.

使用此指令=> https://rvm.io/integration/gnome-terminal/将shell设置为/bin/bash --login

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM