Details

    • Type: Bug Bug
    • Status: Reopened Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: JRuby 1.6
    • Fix Version/s: JRuby 1.6.4
    • Component/s: Core Classes/Modules
    • Labels:
      None
    • Environment:
      jruby 1.6.0 (ruby 1.8.7 patchlevel 330) (2011-03-15 f3b6154) (OpenJDK Client VM 1.6.0_20) [linux-i386-java]
    • Number of attachments :
      0

      Description

      JRuby 1.6.0 seems to have a bug with RUBYOPT handling:

      export RUBYOPT=rubygems; jruby -v
      

      Result:

      jruby 1.6.0 (ruby 1.8.7 patchlevel 330) (2011-03-15 f3b6154) (OpenJDK Client VM 1.6.0_20) [linux-i386-java]
      Error opening script file: /home/dberger/rubygems (No such file or directory)
      

      Where "/home/dberger" is actually whatever directory you're currently in.

        Activity

        Hide
        Nick Sieger added a comment -

        Use RUBYOPT=-rubygems as a workaround.

        Show
        Nick Sieger added a comment - Use RUBYOPT=-rubygems as a workaround.
        Show
        Douglas Campos added a comment - bisecting points to this https://github.com/jruby/jruby/commit/0b3474cfcb71340e2debd177967b1e6a22456447
        Hide
        David Calavera added a comment -

        fixed in rf498fe5

        Show
        David Calavera added a comment - fixed in rf498fe5
        Hide
        Daniel Berger added a comment -

        Nope, not fixed. I see the same problem with 1.6.1 on Ubuntu. I have to use Nick's fix to eliminate the warning.

        Show
        Daniel Berger added a comment - Nope, not fixed. I see the same problem with 1.6.1 on Ubuntu. I have to use Nick's fix to eliminate the warning.
        Hide
        Daniel Berger added a comment -

        jruby -v
        jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (OpenJDK Client VM 1.6.0_20) [linux-i386-java]
        Error opening script file: /home/dberger/rubygems (No such file or directory)

        Show
        Daniel Berger added a comment - jruby -v jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (OpenJDK Client VM 1.6.0_20) [linux-i386-java] Error opening script file: /home/dberger/rubygems (No such file or directory)
        Hide
        Daniel Berger added a comment -

        Still happening with 1.6.3.

        Show
        Daniel Berger added a comment - Still happening with 1.6.3.
        Hide
        codecraig added a comment -

        I'm still on JRuby 1.6.1 but I've had to use JRUBY_OPTS: http://stackoverflow.com/questions/4755900/how-to-make-jruby-1-6-default-to-ruby-1-9

        Show
        codecraig added a comment - I'm still on JRuby 1.6.1 but I've had to use JRUBY_OPTS: http://stackoverflow.com/questions/4755900/how-to-make-jruby-1-6-default-to-ruby-1-9
        Hide
        Thomas E Enebo added a comment -

        moving out of 1.6.1 since that ship sailed long ago

        Show
        Thomas E Enebo added a comment - moving out of 1.6.1 since that ship sailed long ago

          People

          • Assignee:
            David Calavera
            Reporter:
            Daniel Berger
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: