rake db:migrate返回"rake:是目录"吗?

编程入门 行业动态 更新时间:2024-10-12 16:29:10
本文介绍了rake db:migrate返回"rake:是目录"吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我一直在寻找这个问题的答案一个星期,但没有找到答案.如果相关,我正在运行Mac OS 10.5.8.

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.

我正在尝试做Peepcode教程"Meet Rails 3",但是当我运行命令行user$ rake db:migrate时,出现以下错误消息:

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

我在 ruby​​.pastebin 上发现了完全相同的错误,没有答案.感谢任何愿意帮助有抱负的开发人员的人.谢谢.

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

推荐答案

您似乎正在使用Mac OS X随附的默认安装的ruby解释器.我的建议是使用 RVM 来安装/管理您的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.

更多推荐

rake db:migrate返回"rake:是目录"吗?

本文发布于:2023-10-18 15:09:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1504591.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:目录   db   rake   quot   migrate

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!