Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1
-
Fix Version/s: JRuby 1.1
-
Component/s: Miscellaneous
-
Labels:None
-
Number of attachments :
Description
I checked out the JRuby source on Windows and built jruby-bin-1.0.0RC2.tar.gz on Windows. I then copied over the tarball to a Linux machine, extracted it, and attempted to run JRuby:
[albert@dogbert ~]$ jruby-1.0.0RC2/bin/jruby foo.rb
-bash: jruby-1.0.0RC2/bin/jruby: /bin/bash^M: bad interpreter: No such file or directory
This error is due to the jruby script (and probably the other scripts) having Windows line endings instead of UNIX line endings.
Ant's FixCRLF Task can probably fix this issue.
The workaround is to build on Linux. We'll see if we can fix this post 1.0 though.