I successfully installed the yajl-ruby rubygem via gem install, yet attempting to use it throws this error:
/usr/local/lib/ruby/gems/1.8/gems/yajl-ruby-0.7.7/lib/yajl_ext.bundle: dlopen(/usr/local/lib/ruby/gems/1.8/gems/yajl-ruby-0.7.7/lib/yajl_ext.bundle, 9): no suitable image found. Did find: (LoadError)
/usr/local/lib/ruby/gems/1.8/gems/yajl-ruby-0.7.7/lib/yajl_ext.bundle: mach-o, but wrong architecture - /usr/local/lib/ruby/gems/1.8/gems/yajl-ruby-0.7.7/lib/yajl_ext.bundle
I'm guessing it's an architecture mismatch somewhere, but can't figure out why and how to fix it. The machine has a 32 bit kernel, and I installed ruby to /usr/local/src via the hivelogic instructions.
Running a lipo -info on the ruby binary gives: "Architectures in the fat file: /usr/bin/ruby are: x86_64 i386 ppc7400", and I tried forcing yajl-ruby to install via both 32 bit/64 bit architectures by doing "sudo env ARCHFLAGS="-arch x86_64" gem install yajl-ruby" and the same with "ARCHFLAGS="-arch i386".
Figured I'd ask on SO first before approaching the author to make sure it's not an issue with my setup.