GraalVM running ruby-tool error

Chris Seaton chris.seaton at oracle.com
Sun Dec 4 17:47:57 UTC 2016


Hello Rahman,

Sorry, this is my fault. I haven’t been maintaining this tool properly and have
actually now removed it from future GraalVM releases because it will be possible
to use bundle almost as normal from the next release.

For openweather specifically, you should just be able to clone the source and
run it directly - run the executable with the library on the load path.

$ git clone https://github.com/lucasocon/openweather.git
$ graalvm-0.18-re/bin/ruby -I openweather/lib openweather/examples/temperature.rb london
london: 3.69 ℃

Chris

> On 3 Dec 2016, at 13:30, Rahman USTA <rahman.usta.88 at gmail.com> wrote:
> 
> Hello,
> 
> When I try to run https://github.com/lucasocon/openweather.git on GraalVM,
> ruby-tool gives me the following errors;
> 
> $ ruby-tool setup
> 
> Error opening script file:
> /opt/graalvm-0.18-dk/jre/language/ruby/lib/ruby/truffle/jruby+truffle/bin/jruby+truffle
> (No such file or directory)
> 
> First, name of script file is not jruby+truffle it is jruby-truffle-tool,
> after fixing it, I get the following error;
> 
> OptionParser::InvalidOption: invalid option: --interpreter-path
>        block in complete at
> /opt/graalvm-0.18-dk/jre/language/ruby/lib/ruby/stdlib/optparse.rb:1726
>                    catch at org/jruby/RubyKernel.java:1118
>                 complete at
> /opt/graalvm-0.18-dk/jre/language/ruby/lib/ruby/stdlib/optparse.rb:1724
>  block in parse_in_order at
> /opt/graalvm-0.18-dk/jre/language/ruby/lib/ruby/stdlib/optparse.rb:1534
>                    catch at org/jruby/RubyKernel.java:1118
>           parse_in_order at
> /opt/graalvm-0.18-dk/jre/language/ruby/lib/ruby/stdlib/optparse.rb:1527
>                   order! at
> /opt/graalvm-0.18-dk/jre/language/ruby/lib/ruby/stdlib/optparse.rb:1521
>                    order at
> /opt/graalvm-0.18-dk/jre/language/ruby/lib/ruby/stdlib/optparse.rb:1513
>               initialize at
> /opt/graalvm-0.18-dk/jre/language/ruby/lib/ruby/truffle/jruby-truffle-tool/lib/truffle/tool.rb:362
>                   <main> at
> /opt/graalvm-0.18-dk/jre/language/ruby/lib/ruby/truffle/jruby-truffle-tool/bin/jruby-truffle-tool:5
> 
> How can I solve this issue ?
> 
> Thanks
> 
> -- 
> Rahman USTA
> Istanbul JUG
> https://github.com/rahmanusta <http://www.kodcu.com/>



More information about the graal-dev mailing list