在ubuntu 11.04服务器上安装rvm的问题

时间:2012-01-10 12:09:40

标签: install rvm ubuntu-11.04

我正在尝试在Ubuntu 11.04服务器上设置RVM。

利用多用户安装..

我目前得到的错误是: -

$  sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
-sh: Syntax error: redirection unexpected
$ 

我不确定该命令是否有错,因为我正在使用RVM installation guide

命令的精确副本

任何输入都可能真的有用..

当我以root身份登录时,我能够至少运行命令并安装rvm。但是rvm给了我一个找不到的命令。

root@host:/home/dir_name# sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
Downloading RVM from wayneeseguin branch stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  796k  100  796k    0     0   139k      0  0:00:05  0:00:05 --:--:--  261k

Upgrading the RVM installation in /root/.rvm/
installing - /root/.rvm/man/man1/rvm.1.gz -
installing - /root/.rvm/man/man1/rvm.1 -
    RVM system user group 'rvm' exists, proceeding with installation.

Upgrade Notes:

  * No new notes to display.

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

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

Upgrade of RVM in /root/.rvm/ is complete.

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

root@host:/home/dir_name# rvm
No command 'rvm' found, but there are 19 similar ones
rvm: command not found

有几点需要注意,我试过的是: -

最初,我在路径中为我安装了rvm: -

的/ usr /本地/ RVM

但是如果我正确猜测的话rvm命令似乎无法识别它所关注的路径。

我也试过install if root only,安装路径发生变化(到/root/.rvm/),但我仍面临同样的问题。

我有一个用户,登录名为“user1”有办法,我可以让user1识别rvm路径,后面有安装后的文件,这样就可以识别命令

谢谢..

2 个答案:

答案 0 :(得分:1)

这个修复程序做到了: -

source ~/.bash_profile 

答案 1 :(得分:0)

运行此命令:::

bash -s stable&lt; &lt;(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer