2011-05-27 186 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