From: Jano Svitok Date: 2007-09-20T07:19:58+09:00 Subject: Re: How to install RoR on chrooted environment On 9/19/07, Fibre Optic wrote: > Hello, > > i have the following setup: > /home/user1/tmp/root_fs/..... > > under above mentioned directory I have whole important things for my > embedded Linux OS i.e /bin, /etc, /lib, /sbin, /usr etc. I have > installed i.e. lighthttpd, ruby. Unfortunately I have hard time with > installing the gem and the rails. > > How to install the rails without the gem? Or how to install the gem in > chrooted fs? > > Regards, > FO [Obvious note] This question is (at least partially) better asked on Rails-talk group[/Obvious note] Nevertheless, if you create your application and call rake :freeze, it will copy all needed rails files to vendor/ directory in your app. Just copy that to your chrooted dir. I'd suppose that installing gem under chroot is pretty similar to the normal install, provided you have all the stuff that such installation requires - that means in this case at least ruby and rubygems. More details how to install rubygems are at http://docs.rubygems.org/read/chapter/3#page83 Jano