i run macports ruby 1.8.7 and tried to use gitjour. after installing, it would bus error with:
/opt/local/lib/ruby/gems/1.8/gems/dnssd-0.7.0/lib/rdnssd.bundle: [BUG] Bus Error ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]
k, so i went to that bundle and otool -L rdnssd.bundle told me:
that link to osx's built-in ruby didn't look right. it should be linked to my macports libruby in /opt/local/lib. so, i went into the ext dir and checked out the makefile. everything looked proper. so i just tried a sudo make clean; sudo make again and ended up with a new dnssd.bundle, which now otool reports:rdnssd.bundle: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.1.dylib (compatibility version 1.8.0, current version 1.8.6) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.1) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
much better. so, i dropped that rdnssd.bundle back into the lib dir (overriding the one that was compiled there) and now:rdnssd.bundle: /opt/local/lib/libruby.dylib (compatibility version 1.8.0, current version 1.8.7) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.2) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
awesome. i can play with gitjour now.$ gitjour Serve up and use git repositories via Bonjour/DNSSD. Usage: gitjour[name] list Lists available repositories. clone Clone a gitjour served repository. serve Serve up the current directory via gitjour. Optionally pass name to not use pwd.
Thanks a ton--I had the same problem and this fixed it!
Posted by: Steve | February 25, 2009 at 10:18 PM