Questions tagged [rvmrc]

rvmrc is the configuration file of Ruby Version Manager (RVM) that is parsed and applied when RVM initializes.

rvmrc is the configuration file of Ruby Version Manager (RVM) that is parsed and applied when RVM initializes.

41 questions
235
votes
5 answers

Use rvmrc or ruby-version file to set a project gemset with RVM?

I use RVM, the Ruby Version Manager to specify a Ruby version and a set of gems for each of my Rails projects. I have a .rvmrc file to automatically select a Ruby version and gemset whenever I cd into a project directory. After installing RVM…
Daniel Kehoe
  • 10,952
  • 6
  • 63
  • 82
23
votes
4 answers

rvm keeps ignoring my .rvmrc

I'm having some problems with my project. I keep an .rvmrc in my project's directory with the following config: rvm use 1.9.2 and I put the following lines into my ~/.zshrc: rvm_project_rvmrc=1 [[ -s $HOME/.rvm/scripts/rvm ]] && source…
pkazmierczak
  • 853
  • 2
  • 11
  • 13
9
votes
2 answers

How to reload .ruby-version/.ruby-gemset/.rvmrc without leaving current directory?

We are using RVM to manage rubies and gemsets for dozens of projects. Sometimes I'll either edit the .ruby-version or .ruby-gemset file, or pull a newer version of those file(s) from our VCS, but of course RVM is unaware of these changes unless I…
Lambart
  • 1,985
  • 2
  • 21
  • 37
5
votes
3 answers

rvmrc file not working

I have created a gemset named rails2ruby192 and i have added below code in my .rvmrc file in root directory but it is not loading the gemset. ruby-1.9.2-p180@rails2ruby192
persian
  • 91
  • 1
  • 3
4
votes
1 answer

change rvm ruby version with ansible playbook

I have ansible-playbook succesfully installing rvm. But now i must change default ruby version. I have tried with: - name: Install Bundler command: bash -lc "rvm use 2.1.2-p95" or - name: use 2.1 shell: /usr/bin/env bash -lc "rvm use…
Montells
  • 6,389
  • 4
  • 48
  • 53
4
votes
1 answer

How do I get IntelliJ to load my .rvmrc for a non-ruby based project?

I have a Grails project that depends on a couple of ruby gems being installed. All of our developers have RVM installed and thus we have an .rvmrc file in our project directory to switch to the appropriate ruby and gemset. Is there a way to have…
Rob Spieldenner
  • 1,697
  • 1
  • 16
  • 26
4
votes
1 answer

Updating rvm ruined my entire environment because I ran "get head" instead of "get stable"

Let me preface this question that this is occurring in zsh. I updated rvm to version 1.15.8. I did a force reinstall of all my rubies. Also set the gems back to pristine conditions. Here is a list of the problems I have encountered: # 1.8.7 no…
RubyRedGrapefruit
  • 12,066
  • 16
  • 92
  • 193
3
votes
2 answers

rvm gemsets with Bundler

Using Rails: If Bundler retrieves the proper gems (and dependencies) and locks them in the Gemfile.lock for a given project, isn't using a gemset for this same project overkill? I've been told that using gemsets is still a good practice because…
cjames
  • 77
  • 1
  • 7
3
votes
1 answer

Not getting info message after converting rvm from .rvmrc to .ruby-version

I've just run rvm rvmrc to ruby-version on a couple of projects. Looked at the produced files, they match what googling says should be in them (.ruby-version & .ruby-gemset). When I cd into the project directories, I no longer get the Using…
gnoll110
  • 332
  • 1
  • 4
  • 11
3
votes
1 answer

Is it possible selecting a non system Ruby from TideSDK when launching or bundling an application?

I'm testing the bundling of applications including Ruby scripts using TideSDK, via the TideSDK Developer app. I have several Rubies installed on my system, using RVM, and was wondering if there is any way of specifying which one should be used using…
tnarik
  • 149
  • 1
  • 11
2
votes
1 answer

Unable to install rails. error: You don't have write permissions for the /usr/local/rvm/gems/ruby-2.6.3 directory

I installed ruby 2.6.3 using RVM. later when i try to install rails i am getting following error. $ gem install rails -v 6.0.2.1 ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the…
Surya Teja
  • 83
  • 5
2
votes
3 answers

bundle command not found on bash script

I'm wrote a script to automatically run when reboot on crontab this is my configuration in crontab -e @reboot /home/deploy/startup_script >> /home/deploy/startup_script.log 2>$1 This start the script and create logs in /home/deploy Then this is the…
AllenC
  • 2,754
  • 1
  • 41
  • 74
2
votes
2 answers

RVM: Could not locate Gemfile or .bundle/ directory when running $bundle install command

I'm trying to setup RVM on my mac. When I run bundle install in an empty folder (a dummy project folder) I get the following error: Could not locate Gemfile or .bundle/ directory Questions: Do I need to copy any gem files to the dummy project…
Vighnesh Pai
  • 1,795
  • 1
  • 14
  • 38
2
votes
0 answers

RVM not reading .rvmrc files when I open a new tab in my terminal

rvmrc is getting called when I visit that folder using 'cd'. But when I'm opening it in new terminal using ctrl+shift+t, rvmrc is not getting loaded. Here is some more detail: tech@pc113:~/workspace/apps$ type rvm | head -1 rvm is a…
Sachin Prasad
  • 5,365
  • 12
  • 54
  • 101
2
votes
1 answer

Want To Ignore Messages About Gemfile Selection the Ruby Version

I have recently upgraded all of my Rails applications to Rails 4.0.0 Ruby 2.0.0. I am working on a Mac Mini Server running OS X Server (Mountain Lion). I have the following statements in my Gemfile. ruby "2.0.0" #ruby-gemset=mygemsetname When I…
1
2 3