On Sun, Feb 18, 2018 at 4:57 PM, Waldek Kozaczuk <jwkozac...@gmail.com>
wrote:

>
>
>>>  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 :-)?
>

I wouldn't know - I was never able to run the Ruby module because it always
required me to have the same ruby installed on the host.
I don't know why, and I wonder if we could work around this issue (perhaps
by linking the ruby we build as, or also as, a PIE and running it on the
host?)

Anyway, looking at our ruby module's Makefile, it seems that we indeed copy
files to "/usr/share/ruby" and "/usr/lib64/ruby".
What is Ruby's default RUBYLIB, couldn't we just put the files there?
Maybe just putting them all in "/usr/lib" would have worked? (just a silly
guess).

-- 
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.

Reply via email to