culerity icon indicating copy to clipboard operation
culerity copied to clipboard

Culerity not working with regular JRuby

Open gurdotan opened this issue 14 years ago • 6 comments

I'm trying to get Culerity working with a regular installation of JRuby (installed with apt-get on Ubuntu).

I followed all steps in the rdoc, fired up rake culerity:rails:start and I still get the following error:

/usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require': no such file to load -- culerity/celerity_server (LoadError) from /usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire' from /var/lib/gems/1.8/gems/culerity-0.2.12/lib/start_celerity.rb:2

AAHHHH!!!!!! Any ideas? Thanks...

gurdotan avatar Sep 18 '10 14:09 gurdotan

looks like it can't find culerity itself. are you using bundler or something? rvm?

langalex avatar Sep 20 '10 08:09 langalex

i am trying to get cucumber tests working with culerity and rvm and i saw that error too:

/Users/nofail/.rvm/rubies/jruby-1.5.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require': no such file to load -- culerity/celerity_server (LoadError) from /Users/nofail/.rvm/rubies/jruby-1.5.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire' from /Users/nofail/.rvm/gems/ruby-1.8.7-p302@tolingo-site/gems/culerity-0.2.12/lib/start_celerity.rb:2

seems not to happen with culerity culerity-0.2.10, though i have other issues with that...

phoet avatar Sep 23 '10 21:09 phoet

I am having the same problem. 0.2.10 works, but when I switch to 0.2.12 I encounter the same error. I'm using bundler, but that's not a factor, since 0.2.10 works fine with bundler.

ghost avatar Nov 04 '10 15:11 ghost

I had this problem with culerity and bundler. The new way to start the celerity server relies on rubygems which aren't shared by MRI and jruby and that's why you see this message. Also, bundler sets the RUBYOPT environment var which gets shared with the IO#popen call so jruby gets confused about it's environment. There is a pull request and patch in issue #32 (https://github.com/langalex/culerity/issues#issue/32) that solves this and other issues.

tinomen avatar Jan 20 '11 23:01 tinomen

just released 0.2.15, which includes the mentioned fix. does that fix your issues?

langalex avatar Jan 21 '11 13:01 langalex

This is working for me.

tinomen avatar Jan 25 '11 03:01 tinomen