Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sbaha

macrumors newbie
Original poster
Jun 1, 2012
2
0
Hi, if someone could help me, i would really appreciate
i tried to install ruby on rails following instructions from
Agile Web Development with Rails Fourth Edition by thomas and hansson

I installed it once and it was working, but after i exited terminal,
it cannot find rvm or rails when i try.

there were two steps before installng rvm:
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && \ . "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile

after which i was to exit Terminal, which i didn't

Now whenever i open Terminal i have:

-bash: .: command not found
-bash: .: command not found
-bash: .: command not found
-bash: .: command not found

this is what i get when enter /bin/cat ~/.bashrc :

Last login: Sat Jun 2 14:45:14 on ttys000
-bash: .: command not found
-bash: .: command not found
-bash: .: command not found
-bash: .: command not found
xx:~ xx$ /bin/cat ~/.bashrc

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
xx-macbook:~ xx$
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.