我需要将我的ruby版本从2.0.0更新到最新版本,我不能使用一些宝石,因为我的版本没有更新.我曾经用Homebrew安装Ruby,我怎样才能更新我的Ruby版本?
我有一个新的mac pro(OS X 10.9.5),我可以从头开始设置.我想安装RVM,它要做的第一件事就是:
安装mpapis公钥(可能需要
gpg2和或sudo)Run Code Online (Sandbox Code Playgroud)gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
当我尝试时,我得到了:
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
zsh: command not found: gpg
Run Code Online (Sandbox Code Playgroud)
我试图找到一个很好的指导如何克服这一点,看起来也值得信赖,但我没有运气.
有人可以解释是什么gpg,为什么我还没有它,以及如何以正确的方式得到它.
我在我的mac上创建了一个新用户帐户,我正在尝试从雪豹默认值1.8.7更新到当前版本的ruby(1.9.2).有人可以指点我教程或解释将我的mac上的Ruby从1.8更新到1.9.2的最佳方法吗?谢谢
真的,我不知道发生了什么.对不起,如果这个问题是NOOB,但我找不到解决这个问题的方法.
-bash:rvm:找不到命令
我试过这个
curl -L https://get.rvm.io | bash -s - 最新版本
但仍然没有什么我需要看到ruby版本使用simplecov因为它不适用于1.9的旧版本
当我尝试重新安装最新版本的RVM时,RVM向我提供了与缺少或不正确的"$ PATH"变量相关的错误通知.有没有人知道(a)这个变量应该设置为什么,以及(b)如何改变它?
我已经搜索了几十个主题,但似乎没有人完全引用这个问题.任何帮助将不胜感激.
谢谢,科迪
Codys-MacBook-Pro:demo_app Cody$ rvm get head && rvm reload
######################################################################## 100.0%
Downloading RVM from wayneeseguin branch master
Upgrading the RVM installation in /Users/Cody/.rvm/
RVM PATH line found in /Users/Cody/.bashrc /Users/Cody/.zshrc.
RVM sourcing line found in /Users/Cody/.bash_profile /Users/Cody/.zprofile.
Upgrade Notes:
/Users/Cody/.bash_profile:3:export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/Cody/.rvm/bin
* WARNING: Above files contains `PATH=` with no `$PATH` inside, this can break RVM,
for details check https://github.com/wayneeseguin/rvm/issues/1351#issuecomment- 10939525
to avoid this warning append #PATH.
Upgrade of RVM in /Users/Cody/.rvm/ is complete.
Run Code Online (Sandbox Code Playgroud) 我刚刚安装了 rvm 以使用此处概述的方法升级 ruby 。安装后,我的 zsh 实例现在总是显示 rvm:ruby-2.3.0,如下图所示:
我宁愿它不出现,但我找不到它的设置位置,有什么想法吗?这很烦人。
谢谢!
在终端中运行时:
$ curl -L https://get.rvm.io | bash -s
Run Code Online (Sandbox Code Playgroud)
它似乎工作正常,但最后在升级说明中说
* WARNING: You have '~/.profile' file, you might want to load it,
to do that add the following line to '/Users/steven/.bash_profile':
source ~/.profile
Run Code Online (Sandbox Code Playgroud)
我不能使用RVM,得到错误
-bash: rvm: command not found'
Run Code Online (Sandbox Code Playgroud)
我对终端和Ruby很新,所以任何帮助都会非常感激.