Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed Ruby and Rails in Ubuntu(Guest OS) which is mounted on Windows (Host OS) using Virtual Box. But every time I reboot Guest OS, I need to re install Ruby on Rails.I have some experience with Virtualbox & Ubuntu.

Even after installing ruby and rails in same same session(without rebooting guest OS) if I open a different terminal and type ruby --version or irb commands it asks me to install ruby using sudo apt-get install .

How can I solve this install Ruby and Rails permanently in Ubuntu (Guest OS) ? Thanks in advance.

share|improve this question
    
Do you installed ruby via apt-get or gem? –  muniz95 Mar 13 at 20:32
    
@muniz95 digitalocean.com/community/articles/… –  Kavit Shah Mar 13 at 20:37
2  
Set your ruby version to 2.0.0 typing rvm use '2.0.0' --install. Then, type gem install rails, and open a different terminal to test the persistence. –  muniz95 Mar 13 at 20:40
    
$ ruby --version ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux] $ echo $PATH /home/kavitshah8/.rvm/gems/ruby-2.1.1/bin:/home/kavitshah8/.rvm/gems/ruby-2.1.1@‌​global/bin:/home/kavitshah8/.rvm/rubies/ruby-2.1.1/bin:/home/kavitshah8/.rvm/bin:‌​/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:‌​/bin:/usr/games:/usr/local/mysql/bin –  Kavit Shah Mar 13 at 20:42
    
$ ruby --version The program 'ruby' can be found in the following packages: * ruby1.8 * ruby1.9.1 Try: sudo apt-get install <selected package> $ echo $PATH /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin‌​:/bin:/usr/games:/home/kavitshah8/.rvm/bin:/home/kavitshah8/.rvm/bin:/usr/local/m‌​ysql/bin –  Kavit Shah Mar 13 at 20:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.