无法使用不同的 ruby 版本,甚至无法设置为默认版本
我尝试使用不同的 ruby 版本,但它一直失败 - 当我检查 ruby -v 时,它仍然是默认系统。当我尝试使用默认值时也没有运气。当我输入设置为默认值时,需要很长时间才能响应。我做对了吗?
无论如何,我已经重新安装了 ruby。这是日志:
comnom@comnom-G41T-R3:~/hacks/SiriProxy$ rvm use 1.9.3
Using /usr/share/ruby-rvm/gems/ruby-1.9.3-p0
comnom@comnom-G41T-R3:~/hacks/SiriProxy$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
comnom@comnom-G41T-R3:~/hacks/SiriProxy$
I have tried to use different ruby version, but it keeps failing - when i check with ruby -v, it's still the default system. There's no luck too when I try to use as default too. When I typed to set as default, it's taking forever to respond. Am I doing it right?
I have re-install ruby anyway. Here's the log:
comnom@comnom-G41T-R3:~/hacks/SiriProxy$ rvm use 1.9.3
Using /usr/share/ruby-rvm/gems/ruby-1.9.3-p0
comnom@comnom-G41T-R3:~/hacks/SiriProxy$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
comnom@comnom-G41T-R3:~/hacks/SiriProxy$
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保在 RVM 安装后按照说明设置 .bash_profile http://beginrescueend.com/rvm/install 。在多用户安装的情况下,您需要确保您的操作系统尊重并加载 /etc/profile 中的脚本。如果您已执行所有这些步骤,请确保您在安装后已注销并重新登录。
Make sure you are setting up the .bash_profile as instructed afte the RVM installation http://beginrescueend.com/rvm/install. In the case of multi user installations you want to make sure your OS respects and loads scripts in /etc/profile. If you have followed all of these steps, ensure you have logged out and logged back in since the install.