开发者

RVM issues on Mac

Hi I have gone through the installation of git, curl, RVM and Rails through Michael Hartl's railstutorial screencast and it worked last night.

However, this morning when I reopened my terminal and I checked the versions of both rails and git they were older than the release I installed and rvm was nowhere to be found. I have checked spotlight for rvm and it returns nothing. I only receive Rails version 2.3.5 and git 1.7.3.4 when it showed Rails 3.0.7 and Git 1开发者_运维知识库.7.5.4 last night. Has anyone else had this issue before?


You can also put something in your .bashrc or equivalent in order to tell RVM to use the appropriate version of Ruby as a work around. For example if you are using 1.9.2-head, in your .bashrc you should have

rvm use 1.9.2-head

Alternatively, you can just use the above command whenever you need to use this version. Once you load the correct ruby version, rails should change to what you were using last night, you can check with

ruby -v and rails -v

To find rvm, look in ~/.rvm . It won't show up in spotlight, it's hidden.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜