Skip to main content

01.RVM install ruby

The easiest way to install ruby is by using RVM(ruby version manager).If you use RVM you don’t have to worry about dependencies and libaries install with ruby,RVM will take care of that for lets install ruby,open your terminal and enter the command to update your system source list

sudo apt-get update

Next to install curl if you dont have in your system.

sudo apt-get install curl

Next is to install RVM,remember dont use sudo because this is installing in your home directory

\curl -L | bash -s stable

After it is done installing, load RVM. You may first need to exit out of your shell session and start up a new one.

source ~/.rvm/scripts/rvm

if any error appears showing rvm command not found after this,Enter these lines to ur .bashrc manually

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

Next step is to install ruby,for that enter this command

rvm install ruby

note: if you want to install specific version you can choose install by

rvm list known #this will show you available version,pick version and install by

rvm install ruby-version

Now after installation to show installed versions use the command

rvm list

To set ruby version for the system use the command

rvm use ruby-version --default

Check Ruby version by typing

ruby -v


Popular posts from this blog

creating first go program

for creating go program open your editor and paste this code, and save it as filename.go for example helloworld.go

package main import "fmt" func main() { fmt.Println("Hello, 世界") }
I will explain these codes in details for now , we will look how to run these code.

to run type go run helloworld.go  in terminal , we get

you can try golang online as well , golang