0

I have a problem with virtual machine (Ubuntu) installation for the course from edX Berkeley CS169.1x SaaS. I am using the Ubuntu virtual machine provided by the authors (http://www.saasbook.info/bookware-vm-instructions). Basically, I am working on Homework 2, and I followed the instruction and installed the required system successfully yesterday(https://github.com/saasbook/hw-rails-intro). However, today when I open the terminal, some errors show up:

__rvm_fix_path_from_gem_path: command not found

rvm_is_a_shell_function: command not found

and saying: The program 'rails' is currently not installed. You can install it by typing:

sudo apt-get install rails

Then I reinstalled everything again, but the same problem shows up again after restarting my pc or even opening a new terminal.

Thanks in advance!

shivam
  • 16,048
  • 3
  • 56
  • 71
H. J.
  • 1
  • 3

1 Answers1

0

Have you installed RVM?. If not then install RVM first then install rails with gem install rails

Prakash Laxkar
  • 824
  • 1
  • 8
  • 17
  • Yes, I did. RVM 1.6.9. The point is I installed all the required gems, and I even can work on my home work, but when restart my PC or even open a new terminal, the error show up. It seems somehow it can not locate or 'forget' the installed gems. – H. J. Sep 21 '15 at 02:52
  • looks like your RVM is too old. First upgrade rvm via stable it then try again. Here is link https://rvm.io/rvm/upgrading – Prakash Laxkar Sep 21 '15 at 02:55
  • Thanks, I just tried upgrade rvm according to the provided link. I got the message as follows: It looks you are one of the happy Ubuntu users, RVM packaged by Ubuntu is old and broken, follow this link for details how to fix: http://stackoverflow.com/a/9056395/497756 – H. J. Sep 21 '15 at 03:01