S
S. Robert James
I'd like to include a complete version of Ruby, including all the
necessary libs, in the source tree for our internal app. That will
allow our unit tests/QA procedure/app deployment scripts to take
responsibility for upgrades to Ruby as well.
To do this, I of course need to include /usr/lib/ruby/* and
/usr/bin/ruby. And to set the PATH to use our local Ruby.
But it seems that I need to do more:
$ irb
irb(main):001:0> $:
=> ["/usr/lib/ruby/site_ruby/1.8",
"/usr/lib/ruby/site_ruby/1.8/i386-linux", "/usr/lib/ruby/site_ruby",
"/usr/lib/site_ruby/1.8", "/usr/lib/site_ruby/1.8/i386-linux",
"/usr/lib/site_ruby", "/usr/lib/ruby/1.8",
"/usr/lib/ruby/1.8/i386-linux", "."]
Where are those paths located? strings ruby didn't turn them up. I
need to be able to tell it to use the app's private ruby installation.
In general, has anyone done anything like this? What was their
experience? How would you recommend going about doing this?
necessary libs, in the source tree for our internal app. That will
allow our unit tests/QA procedure/app deployment scripts to take
responsibility for upgrades to Ruby as well.
To do this, I of course need to include /usr/lib/ruby/* and
/usr/bin/ruby. And to set the PATH to use our local Ruby.
But it seems that I need to do more:
$ irb
irb(main):001:0> $:
=> ["/usr/lib/ruby/site_ruby/1.8",
"/usr/lib/ruby/site_ruby/1.8/i386-linux", "/usr/lib/ruby/site_ruby",
"/usr/lib/site_ruby/1.8", "/usr/lib/site_ruby/1.8/i386-linux",
"/usr/lib/site_ruby", "/usr/lib/ruby/1.8",
"/usr/lib/ruby/1.8/i386-linux", "."]
Where are those paths located? strings ruby didn't turn them up. I
need to be able to tell it to use the app's private ruby installation.
In general, has anyone done anything like this? What was their
experience? How would you recommend going about doing this?