ROR:耙子中止!堆栈级别太深

发布于 2024-11-29 02:35:55 字数 3019 浏览 1 评论 0原文

我已经尝试过该网站上发布的有关此问题的答案。但没有任何效果

我有以下设置:

rvm 1.6.32 by Wayne E. Seguin ([email  ;受保护]) [https://rvm.beginrescueend.com/]

Rails 3.0.7

ruby​​ 1.9.2p290(2011-07-09 修订版 32553)[i686-linux]

运行时:

$rake db:migrate --trace

我收到以下错误

错误跟踪

(in /home/cjr/Videos/ece_project2/ece_app)

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:136: warning: Insecure world writable dir /home/cjr in PATH, mode 040777

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:32: warning: already initialized constant RAKEVERSION

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS

WARNING: Possible conflict with Rake extension: String#ext already exists

WARNING: Possible conflict with Rake extension: String#pathmap already exists

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:404: warning: already initialized constant EMPTY_TASK_ARGS

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:452: warning: already initialized constant EMPTY

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:960: warning: already initialized constant RUBY_EXT

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:964: warning: already initialized constant RUBY

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1033: warning: already initialized constant LN_SUPPORTED

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1242: warning: already initialized constant ARRAY_METHODS

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1245: warning: already initialized constant MUST_DEFINE

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1249: warning: already initialized constant MUST_NOT_DEFINE

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1253: warning: already initialized constant SPECIAL_RETURN

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1259: warning: already initialized constant DELEGATING_METHODS

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1569: warning: already initialized constant DEFAULT_IGNORE_PATTERNS

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1575: warning: already initialized constant DEFAULT_IGNORE_PROCS

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1612: warning: already initialized constant FileList

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1638: warning: already initialized constant EARLY

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1968: warning: already initialized constant DEFAULT_RAKEFILES

 rake aborted!

 stack level too deep

 /home/cjr/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.8.7/lib/rake.rb:2383

I alread tried the answers posted on this website regarding this issue. But nothing worked

I have the following setup:

rvm 1.6.32 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/]

Rails 3.0.7

ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]

On running:

$rake db:migrate --trace

I get the following error

Error with trace

(in /home/cjr/Videos/ece_project2/ece_app)

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:136: warning: Insecure world writable dir /home/cjr in PATH, mode 040777

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:32: warning: already initialized constant RAKEVERSION

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS

WARNING: Possible conflict with Rake extension: String#ext already exists

WARNING: Possible conflict with Rake extension: String#pathmap already exists

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:404: warning: already initialized constant EMPTY_TASK_ARGS

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:452: warning: already initialized constant EMPTY

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:960: warning: already initialized constant RUBY_EXT

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:964: warning: already initialized constant RUBY

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1033: warning: already initialized constant LN_SUPPORTED

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1242: warning: already initialized constant ARRAY_METHODS

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1245: warning: already initialized constant MUST_DEFINE

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1249: warning: already initialized constant MUST_NOT_DEFINE

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1253: warning: already initialized constant SPECIAL_RETURN

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1259: warning: already initialized constant DELEGATING_METHODS

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1569: warning: already initialized constant DEFAULT_IGNORE_PATTERNS

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1575: warning: already initialized constant DEFAULT_IGNORE_PROCS

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1612: warning: already initialized constant FileList

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1638: warning: already initialized constant EARLY

/home/cjr/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:1968: warning: already initialized constant DEFAULT_RAKEFILES

 rake aborted!

 stack level too deep

 /home/cjr/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.8.7/lib/rake.rb:2383

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

空‖城人不在 2024-12-06 02:35:55

'bundle exec rake db:migrate' 在类似的情况下为我工作,但它看起来并不“正确”。

我发现“rvm 内爆”对我来说是最干净的方法(尽管可能有点矫枉过正)。升级到 OS X Lion 后,一些 gem 似乎不再安装,我的问题出现了。

rvm内爆。重新安装rvm。安装红宝石。安装导轨。捆绑安装。

rake db:migrate 再次工作,无需在其前面添加bundle exec。


旁注:我很想知道更多关于这里实际发生的事情。我认为它与正在安装的同一 gem 的不同版本有冲突?但我找不到任何指向特定方向的详细日志记录。

'bundle exec rake db:migrate' was working for me in a similar situation, but it didn't seem "right".

I found 'rvm implode' to be the cleanest method for myself (though likely overkill). My problems arose sometime after upgrading to OS X Lion, when some gems no longer appeared to be installed.

rvm implode. reinstall rvm. install ruby. install rails. bundle install.

rake db:migrate worked again without prefacing it with bundle exec.


side note: I'd be curious to know more about what actually is going on here. I presume its a conflict with different versions of the same gem being installed? But I couldn't find any detailed logging that pointed towards a specific direction.

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