M
Murali Somanchy
I am trying to copy an entire ruby installation
So, say for e.g. I installed ruby under /usr/ruby
e.g. cp -R /usr/ruby /usr1; rm -rf /usr/ruby
I want to be able to copy it to some other directory say /usr1/ruby and
run (Let us also imagine that /usr/ruby has been deleted). My use case
is that of cloning a ruby repo across the network. So the user that
clones the ruby installation cannot see the original installation under
/usr/ruby
So, I did the copy (clone) and it was unable to find things like
fileutils initially. Then, I set the RUBYLIB and it again failed in
yaml.rb saying
ruby/lib/ruby/1.9.1/yaml.rb:9:in `require': no such file to load --
stringio (LoadError)
What other variables do I have to set to make a copied/cloned ruby
installation work?
So, say for e.g. I installed ruby under /usr/ruby
e.g. cp -R /usr/ruby /usr1; rm -rf /usr/ruby
I want to be able to copy it to some other directory say /usr1/ruby and
run (Let us also imagine that /usr/ruby has been deleted). My use case
is that of cloning a ruby repo across the network. So the user that
clones the ruby installation cannot see the original installation under
/usr/ruby
So, I did the copy (clone) and it was unable to find things like
fileutils initially. Then, I set the RUBYLIB and it again failed in
yaml.rb saying
ruby/lib/ruby/1.9.1/yaml.rb:9:in `require': no such file to load --
stringio (LoadError)
What other variables do I have to set to make a copied/cloned ruby
installation work?