rake db:migrate返回"rake:是目录"吗? [英] rake db:migrate returns "rake: Is a directory"?

查看:95
本文介绍了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.com 上发现了完全相同的错误,没有答案.感谢任何愿意帮助有抱负的开发人员的人.谢谢.

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

推荐答案

您似乎正在使用Mac OS X随附的默认安装的ruby解释器.我的建议是使用

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:是目录"吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆