rake db:migrate returns “rake: Is a directory”?

余生长醉 提交于 2019-12-11 12:53:41

问题


I've been searching for the answer to this question for a week, but haven't found one. I'm running Mac OS 10.5.8 if that's relevant.

I'm trying to do the Peepcode tutorial "Meet Rails 3" but when I run the command line user$ rake db:migrate I get the following error message:

/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake: Is a directory - /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake (Errno::EISDIR)
from /usr/local/bin/rake:19:in `load'
from /usr/local/bin/rake:19

I found the exact same error at ruby.pastebin.com with no answer. Thanks to anyone willing to help out an aspiring developer. Thanks.


回答1:


It looks like you are using the default install of the ruby interpreter that came with Mac OS X. My suggestion would be to use RVM to install/manage your gem locations. I haven't read/watched the "Meet Rails 3" stuff, so I am not sure what they are advocating, but I can speak from experience that RVM makes these types of issues go away.



来源:https://stackoverflow.com/questions/5138161/rake-dbmigrate-returns-rake-is-a-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!