Can you try executing this code and see if it works: require "thread"
thr = Thread.new do sleep(2) puts "Hello world" end thr.join If it doesn't it means your ruby installation is hosed up. It it does it means Rails is munging up with $LOAD_PATH and something is screwed up. On Wed, Jan 14, 2009 at 1:59 AM, s.ross <[email protected]> wrote: > RubyGems Environment: > - RUBYGEMS VERSION: 1.3.1 > - RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i686-linux] > - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 > - RUBY EXECUTABLE: /usr/local/bin/ruby > - EXECUTABLE DIRECTORY: /usr/local/bin > - RUBYGEMS PLATFORMS: > - ruby > - x86-linux > - GEM PATHS: > - /usr/local/lib/ruby/gems/1.8 > - /root/.gem/ruby/1.8 > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com", > "http://gems.github.com"] > - REMOTE SOURCES: > - http://gems.rubyforge.org/ > - http://gems.github.com > - http://gems.github.com > > I can't print anything when backgroundrb starts because it errs out > immediately as far as I can tell. > > Thanks for the quick reply. > > Steve > > > On Jan 13, 2009, at 12:12 PM, hemant wrote: > >> Whats the output of: >> >> gem env >> >> and: >> >> try printing $: when backgroundrb starts. >> >> >> >> On Wed, Jan 14, 2009 at 1:08 AM, s.ross <[email protected]> wrote: >>> >>> I have a peculiar problem and it only happens when I start backgroundrb. >>> I'm >>> running Ruby 1.8.6 >>> >>> Ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux] >>> >>> on CentOS5 >>> Intel(R) Xeon(R) CPU E5410 @ 2.33GHz >>> >>> Up until now, everything has been working just fine but recently I have >>> been >>> unable to restart backgroundrb. The error is >>> >>> /usr/lib/ruby/1.8/thread.rb:5:in `require': no such file to load -- >>> thread.so (LoadError) >>> >>> So I turned to The Google, and found an article where it was suggested >>> that >>> I copy the thread.so from /usr/lib/ruby/1.8/yourarchitecture/ to the >>> parent >>> directory. >>> >>> I tried this and got: >>> >>> /usr/lib/ruby/1.8/thread.so: undefined symbol: rb_eThreadError - >>> /usr/lib/ruby/1.8/thread.so (LoadError) >>> >>> Something is obviously hosed, but I'm not seeing what. >>> >>> Any pointers on how to fix this problem? >>> >>> Thanks >>> >>> Steve >>> _______________________________________________ >>> Backgroundrb-devel mailing list >>> [email protected] >>> http://rubyforge.org/mailman/listinfo/backgroundrb-devel >>> >> >> >> >> -- >> Let them talk of their oriental summer climes of everlasting >> conservatories; give me the privilege of making my own summer with my >> own coals. >> >> http://gnufied.org > > -- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org _______________________________________________ Backgroundrb-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/backgroundrb-devel
