From: Brian Candler Date: 2009-05-20T22:00:59+09:00 Subject: Re: Copying a Ruby installation Murali Somanchy wrote: > 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). This may or may not work. Ruby remembers a lot of things about how it was built and where it was installed: see $ ruby -rrbconfig -rpp -e 'pp Config::CONFIG' Have a look in your rbconfig.rb, which may be somewhere like /usr/lib/ruby/1.8/i486-linux/rbconfig.rb Many of the constants in this file are defined relative to where rbconfig.rb itself exists, so they will be OK, but others may not. Tools like rake use 'bindir' + 'ruby_install_name' to locate the ruby interpreter itself (to reinvoke it) It is almost certainly going to be safer to recompile ruby to install under /usr1/ruby, and then distribute that. Use: ./configure --prefix=/usr1/ruby -- Posted via http://www.ruby-forum.com/.