在Ubuntu 11.4上安装RVM时出错

在Ubuntu 11.4上安装RVM时出错,ubuntu,rvm,Ubuntu,Rvm,我已经按照RVM网站中的安装程序进行了安装(https://rvm.io/rvm/install/)但是它没有安装在我的ubuntu机器上。我从我的/home/user1目录中尝试了它 /.rvm目录本身未创建。它也没有说任何错误 以下脚本在我运行(curl-s)时被转储 有什么帮助吗 user1@ubuntu:~$ (curl -s https://rvm.io/install/rvm) #!/usr/bin/env bash shopt -s extglob PS4="+ \${BASH_

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

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

以下脚本在我运行(curl-s)时被转储

有什么帮助吗

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:~$
user1@ubuntu:~$(旋度-s)https://rvm.io/install/rvm)
#!/usr/bin/env bash
shopt-s extglob
PS4=“+\${BASH\u源代码\\\${rvm\u路径:-}}:\${FUNCNAME[0]:+\${FUNCNAME[0]}()}\${LINENO}>”
出口PS4
set-o errtrace
set-o errexit
log(){printf“$*\n”返回$?;}
fail(){log”\n错误:$*\n;退出1;}
用法()
{
printf“
用法
rvm安装程序[选项][操作]
选择权
--分支-从命名分支安装RVM头
--版本-安装RVM版本[头部|最新| x.y.z]
--跟踪-用于调试安装程序脚本
行动
帮助-显示CLI帮助(此输出)
"
}
.....
....
.....
.
.....
.....
.....
.....
#无论我们在做哪一个,我们都以相同的方式安装,使用RVM
#安装程序脚本。
标志=()
如果((rvm_跟踪_标志==1))
然后
标志+=(“--trace”)
fi
如果((rvm_调试_标志==1))
然后
标志+=(“--debug”)
fi
chmod+x./scripts/install
#现在我们运行RVM安装程序。
./scripts/install${flags[*]}--前缀“$rvm_prefix”--路径“$rvm_path”
user1@ubuntu:~$

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


谢谢现在它安装正确了。
curl -L https://get.rvm.io | bash