Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM version [1.19.1] requires a change to .rvmrc file

The message :

You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to [.]ruby-version'
or ignore this warnings with 'rvm rvmrc warning ignore /Users/wadawadabingbang/Sites/my_amazing_fn_website/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.

What command, exactly, am I supposed to do?

My ruby version is ruby-1.9.3-p385

like image 709
Trip Avatar asked Apr 02 '13 15:04

Trip


People also ask

What is an .rvmrc file for?

The project rvmrc files are intended to be used to setup your project's ruby environment when you switch to the project root directory. As of RVM 1.8.0, after a survey where greater than 80% of respondants wanted the feature on by default, automatic loading of project .rvmrc files is opt-out by default (therefore on).

What is a Gemset file?

Gemsets are little libraries for individual projects, where each gem used in the project is stored. You tell Ruby which gems you need for a project, and it stores them in a gemset so you can quickly switch project to project and have all the gems you need (and only the gems you need for each project).

Does rvm use ruby version?

Ruby Version Manager (RVM) is a utility that allows you to add your own personal version of Ruby to a user. It allows you to add, remove, or have multiple versions of Ruby and its libraries live in your user directory.


2 Answers

If you don't want to change your .rvmrc file in all your projects you run (as Yule said) rvm rvmrc warning ignore all.rvmrcs . It will ignore this warning message for all your projects

If you don't want to change your .rvmrc file just for this project, run rvm rvmrc warning ignore /Users/wadawadabingbang/Sites/my_amazing_fn_website/.rvmrc

However this message advices to move your .rvmrc to the new system. To do this you just need to create .ruby-version with your ruby version inside : 1.9.3-p385 and remove .rvmrc. That's it.

Hope this helps.

like image 165
CupraR_On_Rails Avatar answered Sep 27 '22 18:09

CupraR_On_Rails


I renamed my .rvmrc to .ruby-version and changed the content

from

rvm_trust_rvmrcs_flag=1
rvm use ruby-2.0.0-p0@MYGEMSET --create

to

ruby-2.0.0-p0@MYGEMSET
like image 44
Hannes Avatar answered Sep 27 '22 17:09

Hannes