【问题标题】:Not able to install RVM无法安装 RVM
【发布时间】:2012-01-17 06:15:08
【问题描述】:

我是 ruby​​ 编程新手,想安装 RVM。我已按照https://rvm.beginrescueend.com/rvm/install/ 中提供的步骤进行操作,但我无法完美安装它

在我的安装过程中,我按照以下步骤操作

STEP1 => user$ bash -s stable < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

O/p
Downloading RVM from wayneeseguin branch stable
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0     19      0  0:00:06  0:00:06 --:--:--   120
100  796k  100  796k    0     0  64804      0  0:00:12  0:00:12 --:--:--  186k

Installing RVM to /usr/share/ruby-rvm/
installing - /usr/share/ruby-rvm/man/man1/rvm.1.gz -
installing - /usr/share/ruby-rvm/man/man1/rvm.1 -
RVM system user group 'rvm' exists, proceeding with installation.

# RVM:  Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.beginrescueend.com/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Screencast: http://screencasts.org/episodes/how-to-use-rvm

# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'

Installation of RVM in /usr/share/ruby-rvm/ is complete.

# user,
#
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne

然后我解雇了“user$ rvm requirements” 它给了我这样的输出

Additional Dependencies:
# For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the following:
ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion

# For JRuby, install the following:
jruby: /usr/bin/apt-get install curl g++ openjdk-6-jre-headless
jruby-head: /usr/bin/apt-get install ant openjdk-6-jdk

# For IronRuby, install the following:
ironruby: /usr/bin/apt-get install curl mono-2.0-devel

但是在使用 apt-get 安装这些依赖项后,它在触发命令“user$ rvm list”时给了我错误

bash: /usr/bin/rvm: No such file or directory

之后我无法访问 rvm ..... 请指导我以特定方式安装 rvm 我正在使用 ubuntu 11.10 测试版

【问题讨论】:

  • 我已经触发了一个命令“source /usr/local/rvm/scripts/rvm”,然后使用“type rvm | head -1”得到了类似“rvm is a function”的输出。之后我运行了“rvm use 1.9.2 --default”,我得到了 ruby​​ 的版本到 1.9.2.....
  • 你在正确的轨道上......你需要什么?
  • 非常感谢 Dave 的积极回应……但我找到了解决方案。我忘了在我的评论中提到这一点.....

标签: rvm ubuntu-11.10


【解决方案1】:

触发命令source /usr/local/rvm/scripts/rvm 然后和 type rvm | head -1 并得到像 rvm is a function.

之后我运行了rvm use 1.9.2 --default,我得到了 ruby​​ 的 1.9.2 版本

【讨论】:

  • @Jeet 如果这是您问题的答案,请使用您的“Jeet”用户登录并将其标记为已接受。这可以防止其他人来这里解决已经解决的问题。谢谢
猜你喜欢
  • 2013-12-27
  • 1970-01-01
  • 2012-04-26
  • 2016-09-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-02-10
相关资源
最近更新 更多