Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM Command: source ~/.rvm/scripts/rvm

Tags:

I'm going through the rails by example tutorial series. I'm trying my best to find solutions prior to asking questions, so if I have missed anything I apologise.

Every time I need to boot up RVM from the command line in terminal I need to punch a command so that RVM initialises: source ~/.rvm/scripts/rvm

Is this normal? It seems that I cant get the RVM commands to work unless I punch in this code prior. Note I only have to enter the command once, not every time I need to enter an RVM command.

Many thanks for your help.

like image 717
Ads Avatar asked Jan 30 '11 11:01

Ads


People also ask

What is RVM command?

RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

What is RVM in Linux?

Ruby on Rails is a popular web application framework designed to help you develop successful projects while writing less code. RVM, or Ruby Version Manager, is a command line tool that lets you manage and work with multiple Ruby development environments and allows you to switch between them.

What are the functions of RVM?

rvm can only be used for regression at the moment. the kernel function used in training and predicting. This parameter can be set to any function, of class kernel, which computes a dot product between two vector arguments.


1 Answers

Put this in your ~/.profile or ~/.bashrc:

# This loads RVM into a shell session. [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 

So you don't have to manually type it for every session.

like image 171
Mirko Avatar answered Nov 07 '22 08:11

Mirko