rake db:migrate 返回“rake: 是目录”吗?
我已经寻找这个问题的答案一周了,但还没有找到。我正在运行 Mac OS 10.5.8(如果相关的话)。
我正在尝试执行 Peepcode 教程“Meet Rails 3”,但是当我运行命令行 user$ rake db:migrate
时,我收到以下错误消息:
/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
我在 ruby.pastebin.com 没有答案。感谢任何愿意帮助有抱负的开发人员的人。谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您正在使用 Mac OS X 附带的默认安装的 ruby 解释器。我的建议是使用 RVM< /a> 安装/管理您的 gem 位置。我还没有读过/看过“Meet Rails 3”的内容,所以我不确定他们在提倡什么,但我可以根据经验说,RVM 可以让这些类型的问题消失。
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.