Questions tagged [rbenv]

a simple version manager for Ruby, with a plugin system to modify its behaviour.

rbenv (downcased) is a tool to allow you to switch between multiple versions of Ruby. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.

Download

Useful plugins

Documentation

See Also

1170 questions
22
votes
3 answers

Guard causing "Error: can't modify string; temporarily locked"

When running guard in a Rails 4 project with guard-rspec, I sporadically see the following error when opening/closing files in vim. I've tried upgrading/downgrading guard, guard-rspec, pry, and other libraries without luck. ruby 2.0.0p247…
Charles Maresh
  • 3,323
  • 22
  • 29
21
votes
3 answers

I'm using rbenv, so why are there two Gem paths on my system? (OS X Lion)

To clarify, I'm using rbenv to manage my ruby versions. I was under the impression that binaries are managed as shims in their respective ruby version directory. Here is what my system shows when I run gem environment (I'm excluding the irrelevant…
Nathan
  • 7,627
  • 11
  • 46
  • 80
20
votes
2 answers

rbenv and bundler: "bad interpreter: No such file or directory"

I messed up my configuration. I am running Ubuntu 14.04 and had some issues when I tried to move from a project to an other. I tried to uninstall and reinstall rbenv and then installed Ruby 2.1.7 following this guide:…
Badr Tazi
  • 749
  • 1
  • 6
  • 20
20
votes
3 answers

Why do I get the error "Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2" although I have 2.2.2 installed

I'm using rbenv and I get the error Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2 when I run the bundle install command in my project. The strange thing is that I've actually got the 2.2.2 version installed (as my Gemfile specifies),…
bork
  • 1,556
  • 4
  • 21
  • 42
20
votes
1 answer

Rails: rbenv rehash not working (rbenv-shim exists)

I am trying to rehash rbenv after installing a new gem it gives me these error on my ubuntu server rbenv: cannot rehash: /home/deployer/.rbenv/shims/.rbenv-shim exists however .rbenv-shims doesn't exists
Remon Amin
  • 1,506
  • 2
  • 19
  • 44
20
votes
2 answers

Installing gems to which Ruby with rbenv

How does one control which Ruby a gem is installed to using rbenv? Or could there be a central place accessible to all Rubies? I am just running Ruby scripts not Rails. rbenv-gemset seems to be for that?
Greg
  • 2,359
  • 5
  • 22
  • 35
20
votes
3 answers

Copying gems from previous version of Ruby in rbenv

I installed Ruby 1.9.3-p286 with rbenv. Now, after installing a newer version (p327), obviously, it doesn't know anything about the GEMs installed with the previous version. Is it possible to copy Gems from that version to the newer one, so that it…
ArashM
  • 1,379
  • 13
  • 18
19
votes
7 answers

rbenv — 'find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)

I'm new to rbenv (was using RVM for long time). Today I do clean uninstall of my RVM and install rbenv. I managed to install Ruby 2.5.1 without any issues. But when I try to run bundle install for a project today, I got the following…
Zulhilmi Zainudin
  • 9,017
  • 12
  • 62
  • 98
19
votes
2 answers

How to upgrade from ruby 2.2.3 to ruby 2.3.0

My current Ruby version is 2.2.3 and I want to upgrade it to 2.3.0. I use rbenv using this guide: gorails.com/setup/ubuntu/16.04 How do I upgrade my Ruby version? And when I upgrade, does it affect anything that I need to be aware of?
Jeramae Bohol
  • 191
  • 1
  • 1
  • 6
18
votes
2 answers

rbenv irb history is not saving

I install ruby via rbenv-installer. When I use irb console, I can use history by pressing up and down on keyboard. And when I exited from console and start it again, I can't use prewious history. When I press up-arrow-button, nothing was…
arturtr
  • 1,115
  • 9
  • 18
16
votes
4 answers

Upgrading Global Ruby Version on macOS

I am trying to update Ruby on my computer to version 2.7.0 as that is the latest stable version. Running macOS Catalina Version 10.15.3 Have tried the top two solutions from this StackOverflow post. 1. Using just brew brew upgrade ruby just…
Mr. J
  • 1,524
  • 2
  • 19
  • 42
16
votes
6 answers

ruby-build: definition not found: 2.2.1

I want to install new version of ruby by rbenv install 2.2.1, but I get the error ruby-build: definition not found: 2.2.1 The following versions contain 2.2.1 in the name: rbx-2.2.1 rbx-2.2.10 Could you please let me know how should I install…
Cror2014
  • 417
  • 1
  • 6
  • 16
16
votes
2 answers

Deleting .rbenv from Linux

How can i completely uninstall rbenv ? I want to install rvm and I want to get rid of rbenv completely so they don't clash. This is what I did so far: rm -rf ~/.rbenv cleared all the lines added to my ~/.profile file closed and reopened my…
Zippie
  • 6,018
  • 6
  • 31
  • 46
16
votes
3 answers

Should rbenv be installed system-wide, or at a user level?

I'm building a vagrant setup, and part of that is installing rbenv. I'm using librarian-chef to manage all my chef cookbooks, and it installs rbenv and ruby-build. However, when I tried to ssh into my Vagrant VM and type ruby -v I got the standard…
legendary_rob
  • 12,792
  • 11
  • 56
  • 102
15
votes
3 answers

Need help installing Ruby 2.7.2 on Mac

I'm trying to install Ruby version 2.7.2 on my Mac (latest OS with all updates) and did the following brew update brew upgrade rbenv ruby-build and then rbenv install 2.7.2 ruby-build: definition not found: 2.7.2 See all available versions with…
vince
  • 2,374
  • 4
  • 23
  • 39
1 2
3
77 78