Skip to content

Ubuntu: JRuby startup warning  #5635

@SgtBalogh

Description

@SgtBalogh

Environment

  • JRuby version (jruby -v) and command line (flags, JRUBY_OPTS, etc)
    jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 OpenJDK 64-Bit Server VM 25.191-b12 on 1.8.0_191-8u191-b12-0ubuntu0.16.04.1-b12 +jit [linux-x86_64]

  • Operating system and platform (e.g. uname -a)
    Linux osboxes 4.15.0-42-generic Log wrapper #45~16.04.1-Ubuntu SMP Mon Nov 19 13:02:27 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Other relevant info you may wish to add:

  • Installed or activated gems
    Rails gems

  • Application/framework version (e.g. Rails, Sinatra)
    Rails 5.2.2

  • Environment variables

Expected Behavior

JRuby 9.2.6 works fine in Linux, thanks for this great software. However we get the attached error during startup. What are we doing wrong?

  • Describe your expectation of how JRuby should behave, perhaps by showing how CRuby/MRI behaves.
    Just not print that error :)

  • Provide an executable Ruby script or a link to an example repository.

Actual Behavior

/home/osboxes/Applications/jruby-9.2.6.0/bin/jruby.sh /home/osboxes/Documents/workspaceRuby/kubarails/bin/rails server -b 0.0.0.0 -p 3000 -e development
/home/osboxes/Applications/jruby-9.2.6.0/bin/jruby.sh: 118: [: /home/osboxes/Applications/jruby-9.2.6.0/lib/jruby.jar: unexpected operator
/home/osboxes/Applications/jruby-9.2.6.0/bin/jruby.sh: 121: [: /home/osboxes/Applications/jruby-9.2.6.0/lib/jruby.jar: unexpected operator
/home/osboxes/Applications/jruby-9.2.6.0/bin/jruby.sh: 260: /home/osboxes/Applications/jruby-9.2.6.0/bin/jruby.sh: [[: not found
/home/osboxes/Applications/jruby-9.2.6.0/bin/jruby.sh: 283: [: missing ]
/home/osboxes/Applications/jruby-9.2.6.0/bin/jruby.sh: 283: /home/osboxes/Applications/jruby-9.2.6.0/bin/jruby.sh: : Permission denied

Thanks in advance.

All the best,

Hardy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions