How To Install Ruby
Write the following commands in the terminal one by one and follow the procedure.
- sudo apt-get install curl
- curl https://raw.github.com/wayneesegain/rvm/master/binscripts/rvm-installer | bash -s stable
- source /etc/profile
- source ~/.rvm/scripts/rvm
- type rvm | head -n 1
- curl -L get.rvm.io | bash -s stable
- source ~/.rvm/scripts/rvm
- rvm install 1.9.3
- rvm use 1.9.3
After completing step 9 restart the terminal
How To Run Ruby :
Type “irb” in the terminal
How To Install Rails :
Type the following commands in the terminal
- sudo -s chmod -R 777 /usr/lib/ruby/gems/1.9.1
- sudo -s chmod -R 777 /usr/bin
- gem install railsAnd Yes you are ready to field now.Don't forget to comment if you found this blog helpful. I will keep updating the basic short-cuts on technology we use in our day to day life.. Keep in touch and stay happy.
No comments:
Post a Comment