See my reply below. On Sunday, February 18, 2018 at 7:22:57 AM UTC-5, Nadav Har'El wrote: > > > On Sun, Feb 18, 2018 at 4:59 AM, Commit Bot <b...@cloudius-systems.com > <javascript:>> wrote: > >> From: Waldemar Kozaczuk <jwkoz...@gmail.com <javascript:>> >> Committer: Waldemar Kozaczuk <jwkoz...@gmail.com <javascript:>> >> Branch: master >> >> Ruby: Pass RUBYLIB environment variable >> >> Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com <javascript:>> >> >> --- >> diff --git a/ruby-example/module.py b/ruby-example/module.py >> --- a/ruby-example/module.py >> +++ b/ruby-example/module.py >> @@ -1,4 +1,4 @@ >> from osv.modules import api >> >> api.require('ruby') >> -default = api.run(cmdline="/ruby.so /ruby-example/hello.rb") >> +default = api.run(cmdline="--env=RUBYLIB=/usr/share/ruby:/usr/lib64/ruby >> /ruby.so /ruby-example/hello.rb") >> > > Thanks for fixing this, but this change is annoying for people who want to > run ruby manually (as you noted in > README.md below). Why is it needed? What is the default RUBYLIB search > path, and can't we put things there? > Did this change between ruby 2.2.2 and 2.2.4? > I honestly have no clue why. I may have never worked or simply passing proper cmdline was left to the user :-)?
> > >> diff --git a/ruby/README.md b/ruby/README.md >> --- a/ruby/README.md >> +++ b/ruby/README.md >> @@ -13,14 +13,14 @@ Example: >> \curl -sSL https://get.rvm.io | bash -s stable >> source ~/.profile >> >> -rvm install ruby-2.2.2 >> +rvm install ruby-2.2.4 >> ``` >> >> ## Try irb on OSv >> >> You can try irb by following command: >> ``` >> -./scripts/run.py -e '/ruby.so /irb' >> +./scripts/run.py -e '--env=RUBYLIB=/usr/share/ruby:/usr/lib64/ruby >> /ruby.so /irb' >> ``` >> >> ## Sample scripts >> >> -- >> You received this message because you are subscribed to the Google Groups >> "OSv Development" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to osv-dev+u...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.