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?
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.
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.
First of all thank you Jano for the prompt answer.
I have tried this:
$ rails testapp
then:
$ rake rails:freeze:version
but i receive the following output:
“rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)
/usr/lib/ruby/1.8/rake.rb:1934:in `raw_load_rakefile’
(See full trace by running task with --trace)”