rake db:migrate 返回“rake: 是目录”吗?

发布于 2024-10-19 09:15:39 字数 523 浏览 1 评论 0原文

我已经寻找这个问题的答案一周了,但还没有找到。我正在运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里人 2024-10-26 09:15:39

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文