Good thought. But I'm afraid I was far more stupid than that. I was executing therush.rb, which contains
#!/usr/bin/env ruby So the C Ruby gems-library reader was being invoked. (Doh!) I wonder. Might it be possible to redirect such scripts so they automatically run under JRuby, instead? (I'd rather not have to edit downloaded scripts to make them work.) Thomas E Enebo wrote:
It sounds like you have some strange environment issue where it is mixing up C Ruby and JRuby settings. Here is one way I do this to avoid conflicts: jruby -S gem install therush I rarely set up additional environment variables (Your jruby_home and path envs look good to me). -Tom On 5/30/07, Eric Armstrong <[EMAIL PROTECTED]> wrote:I installed the rubyshell gem. But its require statements aren't finding its libraries. When I have RUBYOPT set to rubygems, the rubygems installer is found in the pre-existing ruby installation, instead of jruby: =================================== c:\jruby-1.0.0RC2\lib\ruby\gems\1.8\gems\THERuSH-0.9\bin\therush.rb ^^^^^^^^^^^^^^^^ c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: ^^^^^^ in gem_original_require: no such file to load -- history.rb (LoadError) =================================== But when I leave that option undefined, gem libraries aren't found at all: =================================== c:\jruby-1.0.0RC2\lib\ruby\gems\1.8\gems\THERuSH-0.9\bin\therush.rb C:/jruby-1.0.0RC2/lib/ruby/gems/1.8/gems/THERuSH-0.9/bin/therush.rb:7: in `require': no such file to load -- history.rb (LoadError) from C:/jruby-1.0.0RC2/lib/ruby/gems/1.8/gems/THERuSH-0.9/bin/therush.rb :7 (Line 7: require 'history.rb') =================================== What additional steps do I need to take so gem libs are found? I've removed all references to the Ruby installation in the enviroment settings, but while I've restarted the command shell, I haven't rebooted. That and the registry are about the only options left. Here are my current settings: JRUBY_HOME c:\jruby-1.0.0RC2 PATH %JRUBY_HOME%\bin;... --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
