Cannot add latest jruby

Issue #88 closed
Dominic Sisneros created an issue

trying to add the latest jruby

uru admin add c:\Dominic\rubies\jruby-9.1.0.0\bin\

I get the following error:

---> Unable to register c:\Dominic\rubies\jruby-9.1.0.0\bin\jruby.exe due to missing ruby info

Comments (9)

  1. Jon repo owner

    I'm not able to reproduce it. What version of uru and Windows are you using?

    C:\>uru ver
    uru v0.8.1 [windows/386 go1.5.2]
    
    C:\>uru ls
        2110p492-x32: ruby 2.1.10p492 (2016-04-01 revision 54462) [i386-mingw32]
        226p322-x32 : ruby 2.2.6p322 (2016-04-29 revision 54815) [i386-mingw32]
        232p115-x32 : ruby 2.3.2p115 (2016-05-04 revision 54900) [i386-mingw32]
    
    C:\>uru admin add C:\Apps\rubies\jruby\bin
    ---> Registered jruby at `C:\Apps\rubies\jruby\bin` as `910`
    
    C:\>uru ls
        2110p492-x32: ruby 2.1.10p492 (2016-04-01 revision 54462) [i386-mingw32]
        226p322-x32 : ruby 2.2.6p322 (2016-04-29 revision 54815) [i386-mingw32]
        232p115-x32 : ruby 2.3.2p115 (2016-05-04 revision 54900) [i386-mingw32]
        910         : jruby 9.1.0.0 (2.3.0) 2016-05-02 a633c63 Java HotSpot(TM) 64-Bit...
    
    C:\>uru admin tag 910 jruby
    ---> retagged `910` to `jruby`
    
    C:\>uru ls
        2110p492-x32: ruby 2.1.10p492 (2016-04-01 revision 54462) [i386-mingw32]
        226p322-x32 : ruby 2.2.6p322 (2016-04-29 revision 54815) [i386-mingw32]
        232p115-x32 : ruby 2.3.2p115 (2016-05-04 revision 54900) [i386-mingw32]
        jruby       : jruby 9.1.0.0 (2.3.0) 2016-05-02 a633c63 Java HotSpot(TM) 64-Bit...
    
    C:\>uru jruby
    ---> now using jruby 9.1.0 tagged as `jruby`
    
    C:\>uru ls
        2110p492-x32: ruby 2.1.10p492 (2016-04-01 revision 54462) [i386-mingw32]
        226p322-x32 : ruby 2.2.6p322 (2016-04-29 revision 54815) [i386-mingw32]
        232p115-x32 : ruby 2.3.2p115 (2016-05-04 revision 54900) [i386-mingw32]
     => jruby       : jruby 9.1.0.0 (2.3.0) 2016-05-02 a633c63 Java HotSpot(TM) 64-Bit...
    
    C:\>jruby --version
    jruby 9.1.0.0 (2.3.0) 2016-05-02 a633c63 Java HotSpot(TM) 64-Bit Server VM 25.92-b14 on 1.8.0_92-b14 +jit [mswin32-x86_64]
    

    I also installed jruby to a dir similar to yours and could not repro

    C:\>uru admin add C:\Apps\rubies\jruby-9.1.0.0\bin
    ---> Registered jruby at `C:\Apps\rubies\jruby-9.1.0.0\bin` as `910`
    
    C:\>uru ls
        2110p492-x32: ruby 2.1.10p492 (2016-04-01 revision 54462) [i386-mingw32]
        226p322-x32 : ruby 2.2.6p322 (2016-04-29 revision 54815) [i386-mingw32]
        232p115-x32 : ruby 2.3.2p115 (2016-05-04 revision 54900) [i386-mingw32]
        910         : jruby 9.1.0.0 (2.3.0) 2016-05-02 a633c63 Java HotSpot(TM) 64-Bit...
    
  2. Wayne Vucenic

    FYI - I was having exactly the same "missing ruby info" problem when trying to add jruby. I had just installed Java, and had not restarted my Windows command shell (cmd.exe), so JAVA_HOME was not set. Starting a new command shell resolved this problem:

    C:\bin>uru admin add c:\jruby-9.1.2.0\bin
    ---> Unable to register `c:\jruby-9.1.2.0\bin\jruby.exe` due to missing ruby info
    
    C:\bin>uru ver
    uru v0.8.1 [windows/386 go1.5.2]
    
    C:\bin>cd \jruby-9.1.2.0\bin
    
    C:\jruby-9.1.2.0\bin>jruby --version
    Cannot find Java 1.5 or higher.
    
    C:\jruby-9.1.2.0\bin>set
    ...
    HOMEDRIVE=C:
    HOMEPATH=\Users\wayne
    LOCALAPPDATA=C:\Users\wayne\AppData\Local
    ...
    
    Note JAVA_HOME not set above
    
    OPENED A NEW COMMAND WINDOW HERE
    
    C:\jruby-9.1.2.0\bin>jruby --version
    jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) 64-Bit Server VM 25.92-b14 on 1.8.0_92-b14 +jit [mswin32-x86_64]
    
    C:\jruby-9.1.2.0\bin>uru admin add c:\jruby-9.1.2.0\bin
    ---> Registered jruby at `c:\jruby-9.1.2.0\bin` as `912`
    
    C:\jruby-9.1.2.0\bin>set
    ...
    HOMEDRIVE=C:
    HOMEPATH=\Users\wayne
    JAVA_HOME=c:\program files\java\jre1.8.0_92
    ...
    
  3. Hiram Suska

    The issue has also come up with my configuration:

    • Windows XP
    • uru v0.8.3 [windows/386 go1.7.3]

    When trying to add Ruby-2.3-p222

    > uru admin add C:\ProgLang\Ruby-2.3\bin
    ---> Unable to register `C:\ProgLang\Ruby-2.3\bin\ruby.exe` due to missing ruby info
    

    Please reopen the issue or tell me/us how to avoid it.

  4. Jon repo owner

    I'll look into it and reopen the issue. That said, I've had no issues with uru supporting your ruby version.

  5. Jon repo owner

    I cannot repro your issue on my Win8.1 x64 machine with ruby-2.3.

    This was a jruby isssue and you do not appear to be using jruby. Open a new issue showing the output of echo %PATH% and summarizing any other relevant system setup.

  6. Hiram Suska

    Hello Jon, please specify what you are referring to by "relevant system setup" besides echo %PATH% and what I already mentioned above (uru version, Ruby version, Windows version)

    I'll try more variations to see if I get any differing results.

  7. Hiram Suska

    It is probably because Ruby 2.3 does not run at all yet on this machine. (Because the standard RubyInstaller does not work an XP)

  8. Jon repo owner

    @sunito try extracting ruby to C:\ProgLang\Ruby-2.3\ using one of rubyinstaller's .7z archives, cd to C:\ProgLang\Ruby-2.3\bin and type ruby --version. If it works, try uru admin add C:\ProgLang\Ruby-2.3\bin again.

  9. Log in to comment