在Ubuntu 11.4上安装RVM错误

时间:2011-05-27 21:32:03

标签: ubuntu rvm

我已经按照RVM网站(https://rvm.io/rvm/install/)中的安装程序进行了操作,但它没有安装在我的ubuntu机器上。我在/ home / user1目录下试了一下。

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

运行时会转储以下脚本(curl -s https://rvm.io/install/rvm)。

对此有何帮助?

user1@ubuntu:~$ (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"

user1@ubuntu:~$

1 个答案:

答案 0 :(得分:0)

您缺少'bash'命令。复制粘贴(全部):

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