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

Bundler can't seem to find correct Ruby through Rbenv

For years I used RVM as my Ruby version manager, but I want to switch to rbenv for its simplicity. However I'm finding some strange problems deploying. Here's where it seems to go wrong: # env RBENV_ROOT=\"/home/deploy/.rbenv\"…
isthmuses
  • 1,316
  • 1
  • 17
  • 27
8
votes
4 answers

Using rbenv doesn't work with sudo?

Any commands that use sudo don't seem to work with RBenv. I'm trying to install ActiveRecord and it says I don't have write permission, so when I try this: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
8
votes
2 answers

Using rbenv with Docker

I am trying to setup rbenv with a Dockerfile, but this just fails on rbenv install. I do have ruby-build in there, it just doesn't seem to work. Relevant bits of the Dockerfile (largely lifted from https://gist.github.com/deepak/5925003): # Install…
TheJF
  • 831
  • 9
  • 13
8
votes
1 answer

Installing ruby 1.9.3 on vagrant rbenv NoMethodError loaded_recipe?

i am attempting an vagrant install and would like to have 1.9.3-p327 as the default ruby version. i am using chef-solo and librarian-chef to manage the vagrant machine. my vagrant file provisioning for chef-solo looks like this config.vm.provision…
legendary_rob
  • 12,792
  • 11
  • 56
  • 102
8
votes
3 answers

Installing ruby-2.0.0-p0 with rbenv BUILD FAILED

So I tried to install ruby through rbenv on my new ubuntu 12.04LTS running on VirtualBox. I got rbenv from https://github.com/sstephenson/rbenv and ruby-build from https://github.com/sstephenson/ruby-build. and then i run the following but build…
ShivvyBee
  • 353
  • 1
  • 4
  • 11
7
votes
2 answers

rbenv: Permission Denied

I was following along with Ryan's RailsCast Episode 339. I had installed rbenv and could run ruby -v. I exited my session, and when I tried to come back in (via su deployer from root, I got this error /home/deployer/.rbenv/bin/rbenv: line 20: cd:…
Tyler DeWitt
  • 23,366
  • 38
  • 119
  • 196
7
votes
5 answers

Fix Your Ruby version is 2.6.8, but your gemfile specified 2.5.5

On my local machine I'm using rbenv When I run bundle install I get: The git source `git://github.com/sinatra/sinatra.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure…
mrateb
  • 2,317
  • 5
  • 27
  • 56
7
votes
2 answers

Ruby: TMPDIR=/tmp cannot hold executables

I am trying to install Ruby on a remote server using rbenv. However, when I run the command rbenv install 2.7.2, I get the error below: ruby-build: TMPDIR=/tmp cannot hold executables (partition possibly mounted with noexec) I have rbenv and other…
Promise Preston
  • 24,334
  • 12
  • 145
  • 143
7
votes
2 answers

"ld: library not found for -lSystem" when installing homebrew ruby on Big Sur

Installing OS11 Big Sur made it so my ruby installation no longer works, so I'm trying to reinstall it. I've installed rbenv from the instructions here, and the rbenv-doctor script runs indicating no problems. But when I try to run rbenv install…
richarddmorey
  • 976
  • 6
  • 19
7
votes
5 answers

Bundler using wrong Ruby version

When I try to start my Rails server, I get the following error: $ bundle exec rails s Your Ruby version is 2.3.7, but your Gemfile specified ~> 2.3.8 I don't understand why that happens though, since I set Ruby to 2.3.8 both using Homebrew and…
Ceasar
  • 22,185
  • 15
  • 64
  • 83
7
votes
4 answers

Gem not loading: NameError (uninitialized constant) | But gem works in local path

I got a new machine and installed rbenv fresh (I always used rvm before). This gem now won't load in my app. I made no code changes. The only difference between now and then is rbenv. Loading development environment (Rails 5.2.1) irb(main):001:0>…
iamse7en
  • 609
  • 8
  • 21
7
votes
1 answer

rbenv system wide install results in insecure operation

We use thin clients at our company and we have many users using the same box. I've installed rbenv as a system install by following the instructions on the following website; https://blakewilliams.me/posts/system-wide-rbenv-install This boils down…
map7
  • 5,096
  • 6
  • 65
  • 128
7
votes
3 answers

Error with ruby update

I tried to update my ruby and rails version. But I ended up with this error: ~ ruby -v /Users/Benjamin/.rbenv/shims/ruby: line 21: /usr/local/Cellar/rbenv/1.1.0/libexec/rbenv: No such file or directory Is there anything I can do to fix this?
Benjamin
  • 521
  • 1
  • 8
  • 19
7
votes
2 answers

Error running rails server - Symbol not found - therubyracer

I have this setup: OSX El Capitan 10.11.1 Ruby 2.0.0p247 (Rbenv) (I don't have RVM) Rails 4.1.14.1 I run bundle install and everything looks ok, but when I run rails server, it returns this message: dyld: lazy symbol binding failed: Symbol not…
Cleyton
  • 2,338
  • 6
  • 23
  • 39
7
votes
3 answers

rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable)

When I run a deploy script, I'm having errors: [cb123fad] rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable) DEBUG [cb123fad] (Backtrace restricted to imported tasks) cap aborted! SSHKit::Runner::ExecuteError:…
Askar
  • 5,784
  • 10
  • 53
  • 96