2011-05-27 143 views
0

我已按照RVM网站(https://rvm.io/rvm/install/)中的安装过程进行了操作,但它并未安装在我的ubuntu机器上。我从我的/ home/user1目录中试过。在Ubuntu 11.4上安装RVM错误

/.rvm目录本身未创建。它也没有说出任何错误。

当我跑时(卷曲-s https://rvm.io/install/rvm)转储下面的脚本。

对此有何帮助?

[email protected]:~$ (curl -s https://rvm.io/install/rvm) 
#!/usr/bin/env bash 

shopt -s extglob 
PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > " 
export PS4 
set -o errtrace 
set -o errexit 

log() { printf "$*\n" ; return $? ; } 

fail() { log "\nERROR: $*\n" ; exit 1 ; } 

usage() 
{ 
    printf " 

Usage 

    rvm-installer [options] [action] 

Options 

    --branch <name>    - Install RVM head, from named branch 
    --version <head|latest|x.y.z> - Install RVM version [head|latest|x.y.z] 
    --trace      - used to debug the installer script 

Actions 

    help - Display CLI help (this output) 

" 
} 
..... 
.... 
..... 
. 
..... 
..... 
..... 
..... 


# No matter which one we are doing we install the same way, using the RVM 
# installer script. 
flags=() 
if ((rvm_trace_flag == 1)) 
then 
    flags+=("--trace") 
fi 

if ((rvm_debug_flag == 1)) 
then 
    flags+=("--debug") 
fi 

chmod +x ./scripts/install 

# Now we run the RVM installer. 
./scripts/install ${flags[*]} --prefix "$rvm_prefix" --path "$rvm_path" 

[email protected]:~$ 

回答

0

您错过了'bash'命令。复制粘贴此(全部):

curl -L https://get.rvm.io | bash 
+0

谢谢。现在它已正确安装。 – Thi 2011-05-27 22:38:33