I had crazy issues getting the mysql gem working properly and after hours of trying to get it run I decided to reinstall my whole Ruby / Rails / Gems setup.
Previously had macports versions of everything installed, went the compile it from source route this time.
Proceeded to build it all from source and now when I get my last Mysql gem installe, to run a "rails projname" test, it spits out the following.
*** OUTPUT [BUG] cross-thread violation on rb_gc() (null)
Abort trap *** END OUTPUT
I read that this is due to that specific gem being compiled /built with an old version of Ruby (Not really possible as I ONLY have the current version installed.. I think) but I tried fixing it anyway.
cd /usr/local/lib/ruby/gems/1.8/gems
gems jb> ls -1 **/**/*.bundle|ruby -pe '$_.gsub! /\-.*/, ""'|uniq
This command only shows the 'mysql' gem being out of date, any attempt at reinstalling / even using the 'arch' settings has the same effect.
Here's a "dump" of my environment: (Snow Leopard)
gems jb> gem env
RubyGems Environment: - RUBYGEMS VERSION: 1.3.5 - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0] - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/local/bin/ruby - EXECUTABLE DIRECTORY: /usr/local/bin - RUBYGEMS PLATFORMS: - ruby - x86-darwin-10 - GEM PATHS: - /usr/local/lib/ruby/gems/1.8 - /Users/jbateman/.gem/ruby/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org/
Willing to try anything even re-ripping ruby/rails etc out of my system again.
Thanks.