【问题标题】:Installing RVM on Ubuntu 11.4 error在 Ubuntu 11.4 上安装 RVM 错误
【发布时间】:2011-05-27 21:32:02
【问题描述】:

我已按照 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:~$

【问题讨论】:

    标签: ubuntu rvm


    【解决方案1】:

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

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

    【讨论】:

    • 谢谢。现在它已正确安装。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-01-14
    • 1970-01-01
    • 2013-08-09
    • 2012-02-10
    • 1970-01-01
    • 2017-11-17
    • 2012-09-23
    相关资源
    最近更新 更多