ezmobius / nanite

self assembling fabric of ruby daemons
Apache License 2.0
735 stars 64 forks source link

nanite does not startup in ruby1.9 #17

Open pmamediagroup opened 14 years ago

pmamediagroup commented 14 years ago

nanite wont startup in ruby1.9 without some code changes. nanite uses FileUtils which does not seem to be available by default in 1.9. I have sent a pull request with a fix to the issue but never got a response (probably with good reason). in any case, with the change nanite runs flawlessly on 1.9. we have it running on several servers without any issues once that change is made.

roidrage commented 14 years ago

I'll check it out. I thought I had caught most of the Ruby 1.9 issues, but I'll look into your fork.

kingcu commented 14 years ago

mattmatt: i fixed this on mine, it's 1.9 getting confused on where FileUtils is. It thinks it's a Nanite class. Putting in a "require 'fileutils'" inside nanite.rb solved the issue for me. There is probably a better place for the require, but I didn't feel like digging through and finding all recurrences of FileUtils inside Nanite, and confining the require to those.

pmamediagroup commented 14 years ago

i think its global to 1.9? irb doesn't recognize fileutils either until it's required.. at least on our system. we put ours in nanite.rb too

pmamediagroup commented 14 years ago

sent pull request

pmamediagroup commented 14 years ago

btw: this only happens when clustering...