Warble broken in jruby 1.5?

installed jruby 1.5 a few days ago and im trying to use warble to run
a test sinatra app on gae.

$warble
/Users/tcc/bin/jruby/bin/warble: line 9: require: command not found
/Users/tcc/bin/jruby/bin/warble: line 11: version: command not found
/Users/tcc/bin/jruby/bin/warble: line 13: syntax error near unexpected
token (' /Users/tcc/bin/jruby/bin/warble: line 13:if ARGV.first =~ /^(.*)$/
and Gem::Version.correct? $1 then’

[08:44:57 [email protected]:~/Sites/RoR/gae–base-app–sinatra]
→$jruby -v
jruby 1.5.0.RC1 (ruby 1.8.7 patchlevel 249) (2010-04-14 0b08bc7) (Java
HotSpot™ 64-Bit Server VM 1.6.0_17) [x86_64-java]

i have the latest gems:
$ jruby -S gem install rack sinatra warbler
Successfully installed rack-1.1.0
Successfully installed sinatra-1.0
Successfully installed jruby-jars-1.4.0
Successfully installed jruby-rack-0.9.7
Successfully installed rubyzip-0.9.4
Successfully installed warbler-1.0.1


Tommy C.
Programmer and UC Irvine Graduate Student
Twitter @tommychheng


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

It looks like the warble file is being run by bash. Can you check
whether the #! line points to the proper JRuby executable?

/Nick

On Sat, Apr 24, 2010 at 10:48 AM, Tommy C. [email protected]
wrote:

Successfully installed jruby-rack-0.9.7

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

Hey Nick,
→$cat /Users/tcc/bin/jruby/bin/warble
#!/Users/tcc/bin/jruby/bin/jruby

→$ls /Users/tcc/bin/jruby/bin/jruby
/Users/tcc/bin/jruby/bin/jruby

If i do jruby -S warble, it works fine. but i suspect someone else will
try to run it with just warble.

Tommy C.
Programmer and UC Irvine Graduate Student
Twitter @tommychheng
http://tommy.chheng.com

On 4/24/10 8:56 AM, Nick S. wrote:

/Users/tcc/bin/jruby/bin/warble: line 9: require: command not found

Tommy C.


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

Hi Tommy,

You should probably install the native jruby-launcher, so that shell
won’t complain when it sees another shell script (shell jruby
launcher) in shebang line.

jruby -S gem install jruby-launcher

Thanks,
–Vladimir

On Sat, Apr 24, 2010 at 5:48 PM, Tommy C. [email protected]
wrote:

Successfully installed jruby-rack-0.9.7

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs