Facing difficulty in Installation of Interactive Ruby shell and ruby in ubuntu 13.04 and getting started with rails

StackOverflow https://stackoverflow.com/questions/18780092

  •  28-06-2022
  •  | 
  •  

Domanda

Accidently I have installed both versions of ruby on my system and now the default version is set to $ ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] but I need to set the default version to 2.0.0... for this I used the command $ rvm 2.0.0p294 --default but it says rvm is not currently installed though I installed it, typing various commands(via google) . Also I want to install an Integrated Ruby shell in ubuntu 13.04, do suggest how to do it. I have also installed Aptana Studio on my system, now how should I get started with it. Finally, the last problem is tell me how to check whether rails is currently installed in my system or not... Thanx in advance!!

È stato utile?

Soluzione

to use a gemset try writing rvm use ruby_gemset_version

to check the rails version try to type rails -v

Altri suggerimenti

you have to install RVM (ruby version manager), then you have control to use any specific versions of ruby, and coming to rails you have to manually install rails gem once you have installed rvm and selected a version. This would be helpful to install rvm https://rvm.io/rvm/install

After installation you have to install ruby versions. Then you can use the following cmd $ rvm use 2.0.0 to use ruby 2.0.0

Thank you.

Go to this http://rvm.io/rvm/install It has instruction to install and cofigure RVM. It is dependant on CURL lib. So make sure you have curl installed in your system, if not then the command is

#sudo apt-get install curl

Once it is intalled and configured properly.

On Ubuntu: GoTo Terminal > Profile Preferences > Title and Command > Set checkbox for (Run command as login shell)

Install rubies using rvm install.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top