Questions tagged [chruby]

chruby is a command-line tool for changing the currently active Ruby version.

chruby is a command-line tool for changing the currently active Ruby version.

42 questions
0
votes
1 answer

Rails server failing trying to load spring on new app (ruby v 2.7.1, rails v 6.0.3.2, MacOS 10.15.5, bundler v 2.1.4, chruby)

{9:08}~/dev/rails ➭ which ruby /Users/jay/.rubies/ruby-2.7.1/bin/ruby {9:08}~/dev/rails ➭ which rails /Users/jay/.gem/ruby/2.7.1/bin/rails {9:08}~/dev/rails ➭ rails -v Rails 6.0.3.2 {9:08}~/dev/rails ➭ rails new one create create …
jjnevis
  • 2,672
  • 3
  • 22
  • 22
0
votes
1 answer

gem locations in macOS with chruby and TextMate preferences

I having trouble getting Ruby gems to work right with TextMate (TM) and chruby on macOS. Clean install of Mojave (now v10.14.4) on a 2017 iMac about six months ago. Trying to use Ruby-2.6.2, although earlier versions have been installed. System Ruby…
Greg
  • 2,359
  • 5
  • 22
  • 35
0
votes
1 answer

How to call chruby from a ruby script

I'm writing a ruby script to bootstrap a new macbook computer. I installed chruby and ruby-install via homebrew. If I call chruby from the command line it works. $ chruby * ruby-2.4.1 But if I call it from a ruby script like so. def…
Nate Rubin
  • 21
  • 4
0
votes
1 answer

How to migrate Ruby gems when using chruby

Is there a way to migrate gems from a previous version on installed Ruby to a newly installed version of Ruby when using chruby?
Greg
  • 2,359
  • 5
  • 22
  • 35
0
votes
1 answer

Chruby and RVM I don't recall ever installing Chruby, but I'm consistently getting this message chruby: unknown Ruby: ruby-2.3.3

I've done some reading here and I'm not sure I understand the distinction or the necessity of Chruby if I already have RVM. I don't ever remember specifically installing it and the more I read about it the more I'm confused by what it actually is…
Lenocam
  • 331
  • 2
  • 17
0
votes
1 answer

Ruby get reset to the previously installed version

I have ruby 2.3.0 and 2.3.1 installed via chruby and: $ cat ~/.ruby-version ruby-2.3.1 But each time I open a new terminal window, it gets reset 2.3.0. $ cd my_rails_app $ rails s Your Ruby version is 2.3.0, but your Gemfile specified 2.3.1 but…
Sojo
  • 5,455
  • 3
  • 10
  • 11
0
votes
1 answer

Using chruby to permanently update the desired Ruby version

I'm trying to permanently (for the time being, that is) update my version of Ruby to 2.2.3 using chruby. It's currently 2.0.0. Every time I quit the command line interface, the version reverts to 2.0.0, and when trying to use chruby (in a new…
0
votes
1 answer

Socket Error when uploading CarrierWave image after changing to chruby

My setup was working fine until I switched from RVM to CHRuby. When I restarted the server and loaded the local page, I got a dialog box that looked like…
vanilla_skies
  • 415
  • 5
  • 15
0
votes
1 answer

Upgraded to Yosemite and now ruby libraries are breaking

I upgraded to Yosemite, and now when I try to setup an initial rails app using rails new I am getting an error message: /Users/****/.rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require': …
-1
votes
2 answers

chruby, and Ruby gems "cannot load such file — "

I recently moved to a new iMac and did a clean install. Consequently not everything works like it did on my MBP. I made several changes suggested by @awsmsce and have incorporated that into the following. Still have the problem. A ruby script that…
Greg
  • 2,359
  • 5
  • 22
  • 35
-1
votes
2 answers

How not to have to type "bundle exec" using Bundler binstubs & chruby?

I'm using chruby to manage my Ruby versions, and Bundler's binstubs to avoid having to type "bundle exec". I'm running into issues I don't totally understand. Here's what I get when I try to run the test suite in our (Rails 4, Ruby 2.2.2)…
Duncan Malashock
  • 776
  • 10
  • 32
-2
votes
1 answer

How can I load zsh settings conditionally based on CPU?

I have my .zshrc file stored on a cloud service and have symbolic links that reference it on both of my Macs. One is M1 based on the other Intel. I need a setting that is slightly different on each machine because of the different CPU types. How can…
Jacob Miller
  • 562
  • 4
  • 16
1 2
3