我一直在寻找这个问题的答案一个星期,但没有找到答案.如果相关,我正在运行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:是目录"吗?
发布评论