This forum is no longer active. Please post your questions to our new community site

Recent Posts by james_mcgrath

Subscribe to Recent Posts by james_mcgrath 3 post(s) found

09 Apr, 2009 11:58 AM
Avatar james_mcgrath 3 post(s)

Topic: RubyStack & JRubyStack / BackgrounDRB on RubyStack

Hi All, was wondering if anyone has had any luck with using the BackgrounDRB (http://backgroundrb.rubyforge.org/) plugin on RunbyStack? I have followed the steps given on the plugins project page (see previous URL) and have not been able to get it to run.

I am currently getting the following errors in the backgroundrb log file:

/Applications/rubystack-1.4-beta-1/ruby/lib/ruby/gems/1.8/gems/packet-0.1.14/lib/packet/packet_master.rb:116:in `exec’: Exec format error – packet_worker_runner 7:6:log_worker:17:/Volumes/DATA/development/rails/sched/lib/workers:/Volumes/DATA/development/rails/sched/script/load_worker_env (Errno::ENOEXEC)
>> from /Applications/rubystack-1.4-beta-1/ruby/lib/ruby/gems/1.8/gems/packet-0.1.14/lib/packet/packet_master.rb:116:in `fork_and_load’
>> from /Applications/rubystack-1.4-beta-1/ruby/lib/ruby/gems/1.8/gems/packet-0.1.14/lib/packet/packet_master.rb:80:in `start_worker’
>> from /Volumes/DATA/development/rails/sched/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:16:in `initialize’
>> from /Applications/rubystack-1.4-beta-1/ruby/lib/ruby/gems/1.8/gems/packet-0.1.14/lib/packet/packet_master.rb:19:in `run’
>> from /Volumes/DATA/development/rails/sched/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:14:in `initialize’
>> from /Volumes/DATA/development/rails/sched/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:48:in `new’
>> from /Volumes/DATA/development/rails/sched/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:48:in `start’
>> from script/backgroundrb:35

Has anyone had any success with this plugin? Anyone know of a simple missing step to make it work? BTW: I have tried running it using a fresh install of both RubyStack 1.2.1 and the 1.4-beta1 on MacOSX. Any ideas would be greatly appreciated!

Thanks.

 
28 Mar, 2009 09:30 PM
Avatar james_mcgrath 3 post(s)

Topic: RubyStack & JRubyStack / Problem upgrading RubyGems to 1.3.1

Carlos you are a champ! And I am a chump! After all the googling I did I forgot to stick “update_rubygems” into this forums search box.

Anyway it seems that after commenting out those RUBYOPT lines in setenv.sh the upgrade process worked. Time to get on with what I was doing!

Thanks again, really appreciate it.

 
28 Mar, 2009 11:54 AM
Avatar james_mcgrath 3 post(s)

Topic: RubyStack & JRubyStack / Problem upgrading RubyGems to 1.3.1

Hi All, quick call out to see if anyone has a solution to a little problem that I am having no luck with on RubyStack 1.2.1 on Mac Leopard. I am trying to upgrade my RubyGems to 1.3.1 because I am being told the following:

rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update—system` and try again.

From this site (http://blogs.sun.com/divas/entry/fixing_the_rails_requires_rubygems) I learnt that gem update has a bug and instead I needed to install a “rubygems-update” gem to get around this bug. This gem installed fine, but when I run the command:

ruby -S update_rubygems

I get no joy, just a message saying “Installing RubyGems 1.3.1” and the system will happily sit there forever. Anyone have this problem before. Anyone know the trick to solve it? I am sure it is so simple it is driving me nuts!

BTW: I have ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.5.3]

Thanks!