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
226
votes
22 answers

Ignoring GEM because its extensions are not built

On both my work and home computers, I recently upgraded Ruby to 2.3.1, using ruby-install. I use chruby as my Ruby switcher. I started seeing this warning in my terminal: Ignoring bcrypt-3.1.11 because its extensions are not built. Try: gem…
Phillip Longman
  • 2,512
  • 2
  • 11
  • 15
57
votes
1 answer

What are the differences between rbenv, rvm, and chruby?

I'm new-ish to Ruby and Rails. I am looking for a purely objective list of features and advantages/disadvantages of each. In an effort to keep preference out of this, please refrain from answering unless you have used all 3 systems.
Jordan
  • 1,879
  • 3
  • 19
  • 25
11
votes
4 answers

ruby-install fails when installing ruby 2.6.x and 3.0.x on mac osx 11.6

When running ruby-install, it fails to build. This also reported in rbenv issues (https://github.com/rbenv/ruby-build/issues/1725). for example when installing ruby 2.6.8 # installing via ruby-install ( https://github.com/postmodern/ruby-install…
mirageglobe
  • 2,446
  • 2
  • 24
  • 30
9
votes
1 answer

Can chruby and chgems replace rvm's gemset?

I am currently using rvm on my development machine for switch between rubies (mainly 1.9.x and 1.8.7). Then I came across chruby and found the "Does not hook cd" feature attractive. Can chruby + chgems replace rmv's gemset feature? Before: $ rvm…
ohho
  • 50,879
  • 75
  • 256
  • 383
6
votes
2 answers

How to set correct Ruby version in gem environment

Note: This question relates to How can I get bundler to use the Ruby version set by chruby and .ruby-version?. Using chruby I have Ruby 1.8.7 installed on macOS: $ ruby -v ruby 1.8.7 (2013-06-27 patchlevel 374) [i686-darwin17.4.0] Also, I have used…
Keith Pitty
  • 1,498
  • 1
  • 12
  • 22
6
votes
2 answers

Not able to run /etc/profile.d/chruby.sh while deploying using Capistrano in Rails

I have been trying to deploy my rails application on an EC2 instance. The steps which i have taken already are Locally: I installed all the gems by writing in Gemfile and bundle install: group :development do gem 'capistrano' gem…
alchemist95
  • 759
  • 2
  • 9
  • 26
5
votes
4 answers

Why isn't chruby saving my default Ruby?

I'm setting up a new machine and trying to install Ruby with chruby. I used ruby-install to install both ruby 2.3 and 2.1.2 because that's what everybody else on my team is running. When I run chruby I get: ruby-2.1.2 ruby-2.3.0 Then I…
Gambai
  • 651
  • 1
  • 7
  • 25
4
votes
4 answers

Why is my React Native Pod Install Erroring?

Trying to run pod install in a new React Native project and getting this error. Ruby is installed with brew I have installed chruby and ruby-install, which I have then used to install ruby-2.7.5 cocopods, ffi and bundler. When trying bundler to…
EddyWD
  • 197
  • 2
  • 15
4
votes
1 answer

chruby: unknown Ruby: ruby-2.2.0

With chruby, why won't ruby-2.2.0 in .ruby-version work, whereas chruby ruby-2.2.0 will? % whoami mark % sudo su myapp % cd /home/www/myapp/ % whoami chruby: unknown Ruby: ruby-2.2.0 myapp % cat .ruby-version ruby-2.2.0 % which…
Mark Boulder
  • 13,577
  • 12
  • 48
  • 78
3
votes
1 answer

chruby: How to use the default system ruby?

Is there a way to select the default system-wide ruby through chruby? Eg: $ which ruby /usr/bin/ruby
Tom Hale
  • 40,825
  • 36
  • 187
  • 242
3
votes
0 answers

Why can't I set a default ruby with chruby in my .zprofile

After upgrading to Yosemite my ruby dev environment was not working well so I thought I would take the opportunity to switch to chruby from rbenv. It's all gone pretty well after installing and I can switch between rubies easily, but I cannot set a…
brad
  • 9,573
  • 12
  • 62
  • 89
3
votes
1 answer

How to uninstall chruby?

OS X 10.9.4. I did not install the chruby by homebrew. I would love to uninstall the chruby. Because I want to do a fresh install again. I think I need to go to where chruby it is. And run make uninstall I tried to find where it is: ➜ ~ whereis…
Juanito Fatas
  • 9,419
  • 9
  • 46
  • 70
3
votes
1 answer

How to use chruby with sudo and foreman?

I am trying to use sudo with chruby and foreman, but without success. I tried $ sudo chruby-exec ruby-2.1.2 -- foreman $ foreman: command not found But the same command with rake command works fine. $ sudo chruby-exec ruby-2.1.2 -- rake --version $…
Ricardo
  • 667
  • 9
  • 25
3
votes
6 answers

Chruby install Ruby 1.8.7

I'm using chruby for version management and am cloning a project that is unfortunately in Ruby 1.8.7. Is it possible to install Ruby 1.8.7 with chruby? I'm having trouble finding resources for this process.
andy4thehuynh
  • 2,042
  • 3
  • 27
  • 37
2
votes
1 answer

How do I find the directory chruby.sh and auto.sh files to finalize installation of chruby?

I apologize in advance; I am new to all of this. When I downloaded chruby via Homebrew, some "Caveats" came up, i.e., "Add the following to the ~/.bash_profile or ~/.zshrc file ..." I closed my Terminal before following these instructions and now I…
THB
  • 21
  • 2
1
2 3