What are the differences between rbenv, rvm, and chruby? [closed]

There’s three main options available today: rvm which is the most established, but also the most intrusive in terms of shell modifications. rbenv which is lower impact, and still works as well. chruby which purports to be even lighter than rbenv. Personally I prefer rbenv because it works well with Homebrew and doesn’t mangle the … Read more

Bundle not working with rbenv

Your installation is caught in a loop. Change to a directory that is not your app, and that doesn’t have a Gemfile. Then do the usual gem install bundle (and use sudo if you need it) Then change to your app directory, and do the usual bundle install. Does that solve your issue? If you … Read more

Rails 5.2.0 with Ruby 2.5.1 console – `warning:` `already` initialized constant FileUtils::VERSION

I had the same issue. The one step missing from your post is to uninstall the fileutils gem first, then gem update with the default option. gem uninstall fileutils Successfully uninstalled fileutils-1.1.0 gem update fileutils –default Updating installed gems Updating fileutils Fetching: fileutils-1.1.0.gem (100%) Successfully installed fileutils-1.1.0 That got rid of the verbose fileutils messages … Read more

RVM equivalent for PHP?

For PHP alternatives to RVM and rbenv, you have phpbrew, phpenv and php-version. Please be aware that I am the author of php-version so of course I prefer it as I wrote it to scratch my own itch (I wanted something minimal with command completion); however, phpenv is quite good as well. You would do … Read more

How do you uninstall rbenv on macOS?

I took these steps to successfully get rid of rbenv on my mac running El Capitan (10.11.4). Rbenv is a major cause of Failed to build gem native extension errors from my experience. Remove using brew: brew remove rbenv Delete .rbenv directory: rm -rf ~/.rbenv For Bash Open .bash_profile file and delete any lines with … Read more

uninstall ruby version from rbenv

New way Use the uninstall command: rbenv uninstall [-f|–force] <version> rbenv uninstall 2.1.0 # Uninstall Ruby 2.1.0 Use rbenv versions to see which versions you have installed. Old way To remove a Ruby version from rbenv, delete the corresponding directory in ~/.rbenv/versions. E.g. rm -rf ~/.rbenv/versions/1.9.3-p0 Run rbenv rehash afterwards to clean up any stale … Read more

The command rbenv install is missing

The install command is not embedded into rbenv, it comes from the ruby-build plugin. You can install it using the command: git clone https://github.com/rbenv/ruby-build.git “$(rbenv root)”/plugins/ruby-build On Mac OS X you can install it through homebrew: brew install ruby-build On Debian (version >= 7) and Ubuntu (version >= 12.10) both rbenv and ruby-build can be … Read more