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
2
votes
4 answers

How to get rid of RVM notice

Is there a way to get rid of the warning, when I traverse into a folder having a .rvmrc file. ==================================================================================== = NOTICE …
Sam
  • 8,387
  • 19
  • 62
  • 97
2
votes
1 answer

Displaying a custom message when cd'ing into a directory

I'm looking for a way to display a custom message when cd'ing into a directory. For example $ cd some_folder Warning: Don't edit these files! some_folder $ From an old post I found the suggestion of adding this to my .bashrc file: reminder_cd() { …
Sam Fen
  • 5,074
  • 5
  • 30
  • 56
1
vote
1 answer

unknown switch `1` error while using rvm

I recently migrated from oh-my-zsh -> bash -> prezto. During all this I somehow messed up my rvm. Now whenever I run rvm use or rvm use 1.9.2 or even while loading .rvmrc, I get the following error: error: unknown switch `1' usage: git rebase [-i]…
goyalankit
  • 843
  • 8
  • 23
1
vote
1 answer

Respecting rvmrc while cd in ruby script

Background: I wrote a short script in MRI 1.9.2p320 for updating all my projects – http://git.io/eez8Kg . Tool which i utilize for the updating/pulling itself (git-up) is also able to automatically bundle project after it discover changed Gemfile.…
Mailo Světel
  • 24,002
  • 5
  • 30
  • 40
1
vote
3 answers

RVM is trying to use the wrong Ruby version

I have installed Ruby 1.9.3-p327 and I can use it and my .rvmrc file contains the following: rvm use ruby-1.9.3 But when I go to the project directory, an error occurs: ruby-1.9.3-p362 is not installed. To install do: 'rvm install…
Airat Shigapov
  • 575
  • 4
  • 19
1
vote
1 answer

.rvmrc trust hangs/freezes

I'm having problems trusting an rvmrc as a non-root user. If I cd to the project directory I get the rvm trust prompt Do you wish to trust this .rvmrc file? (appdir/.rvmrc) y[es], n[o], v[iew], c[ancel]> but when I pick y[es] it hangs indefinitely.…
kamal
  • 21
  • 2
0
votes
1 answer

Cannot install old ruby version

I am unable to install ruby 2.4.2 My setup must allow me to use nvm and rvm, and I need to use ruby versions 2.7.2 and 2.4.2. I suspect you may find multiple problems with my openssl and rvm setup. Also, I am not sure which version of openssl is…
user3724786
  • 63
  • 1
  • 9
0
votes
2 answers

Is there a rvm env variable for configure flags?

instead of: rvm install 2.6.6 -C --with-jemalloc Can I somehow set an environment variable so that I can install rubies without passing configure flags? That is: rvm install 2.6.6 It seems there's this $rvm_configure_flags var all throughout the…
jsharpe
  • 2,546
  • 3
  • 26
  • 42
0
votes
1 answer

Can't remove rvm from root

So I made the mistake of using sudo in rmv ruby, which created a lot of problems. I finally removed rmv using rmv implode, and installed another ruby after installing rbenv, but the problems still persisted. Finally on checking environment…
0
votes
1 answer

Rvmrc file not selecting the gemset

I am using rvm 1.26.2 & Ubuntu 14.0.4 I have to create separate gem sets and .rvmrc file for each project, but the .rvmrc file isn't selecting the gemset. can any one tell why the application ignore .rvmrc file ? Thanks in advance
Siva
  • 111
  • 4
0
votes
0 answers

How to invoke a ruby script (1.9.1) from an environment that's using a different ruby version (2.0.0)?

I am running my Sinatra server with Ruby-2.0.0. I am trying to invoke "chef-client" from the Sinatra app, but I got the following error: /usr/local/rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.2/lib/bundler/rubygems_integration.rb:252:in `block…
jchenjc
  • 117
  • 1
  • 2
  • 11
0
votes
2 answers

How to use .rvmrc or .ruby-version / .ruby-gemset w/ new terminal window that's ALREADY in project dir?

Quick question for you guys: According to the RVM docs, using an .rvmrc or .ruby-version / .ruby-gemset files... This will be set when entering project directory My question is, in OSX, you have the ability to Cmd-T to open a new Terminal tab, and…
nlh
  • 1,055
  • 1
  • 10
  • 15
0
votes
1 answer

git clone copying some files from other projects?

I've forked a repository, and after doing so, attempted to clone it $ git clone https://github.com/dax/newly_cloned_project.git the clone is successful: Cloning into '[newly_cloned_project]'... remote: Counting objects: 180, done. remote:…
dax
  • 10,779
  • 8
  • 51
  • 86
0
votes
1 answer

.rvrmc / "Could not find railties" when cloning new Rails from github

I cloned a Rails app developed by another person within my company from Github. When I cd into the app's directory I get this message in the terminal: You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other…
GMA
  • 5,816
  • 6
  • 51
  • 80
0
votes
1 answer

Error: -:Command not found, After running command "echo 'rvm_path="$HOME/.rvm"' >> ~/.rvmrc –"

I am getting this error after i have executed this command "echo 'rvm_path="$HOME/.rvm"' >> ~/.rvmrc –".. As suggested by someone in this forum.The program 'bundle' is currently not installed and now ,Even i try to change the directory it is showing…
Abhinay
  • 1,796
  • 4
  • 28
  • 52