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
0
votes
1 answer

Where ruby versions should go in rbenv?

I'm on ubuntu and installed rbenv + ruby-build. when I try to install any version I get an error. from the log it seems that it tries to install ruby at /usr/local/rbenv/versions which gives a Permission denied error. I'm not sure if this the right…
Ansd
  • 1,865
  • 3
  • 19
  • 30
0
votes
1 answer

Capistrano no longer working after removing rbenv

I removed RBENV and switched to RVM. Now when i try to deploy with capistrano, or even try to just run "cap" i get: /Users/me/.rbenv/shims/cap: No such file or directory It's obviously still looking for the rbenv shim, but how do i get capistrano…
Joel Grannas
  • 2,016
  • 2
  • 24
  • 46
0
votes
1 answer

After installing rbenv I need to add require 'rubygems'

I replaced rvm with rbenv on my Macbook and after doing so I've needed to add require 'rubygems' to things to get them working. Is there a way of forcing rubygems to be required, or removing the need for it?
Arcath
  • 4,331
  • 9
  • 39
  • 71
0
votes
1 answer

Error deploying to rbenv with Capistrano

I'm new to Capistrano and having trouble debugging an error. Searching suggests this error could be an environment issue of picking up the wrong version of ruby (it's almost certainly not the referenced file as it works fine in test). Using a…
Kris Braun
  • 1,330
  • 13
  • 21
0
votes
1 answer

Why is bundler not able to install rake even though rake appears to be present?

I'm having some trouble with rbenv and bundler. When I bundle install on my app, I get an error saying that an error occurred while installing Rake. I'm thinking this has something to do with rbenv not pointing to the write path for gems -- but I'm…
rswolff
  • 3,258
  • 5
  • 28
  • 31
0
votes
2 answers

Bundle install error with rbenv

I have been working through the Ruby on Rails 3 Tutorial, and recently switched from RVM to rbenv, per a recommendation from a Rubyist friend of mine. Unfortunately, now when I create a new project and then attempt to $ bundle install I get this…
Alexander
  • 49
  • 1
  • 1
  • 7
-1
votes
1 answer

Unable to update ruby version on macOs 13.2.1 (22D68) on intel i7 2019 model

I have tried at least 10 ways to install/ update ruby to a newer version atleast 2.7.6 but no luck so far. I have zero experience with ruby. Please help I have tried to install it using homebrew, rvm, rbenv frum etc. Always end up with this…
Sumeet
  • 1
-1
votes
1 answer

Ruby 2.3.8 installation fails on MacOS with rbenv as it is showing build failure while installing openssl

I have macos monterey M1 pro chip, and while installing the ruby version 2.3.8 through rbenv it is failing as it is showing a build error while installing OpenSSL. % rbenv install 2.3.8 To follow progress, use 'tail -f…
-1
votes
2 answers

Respect rbenv when running commands over ssh

I have a headless Ubuntu 18.04 VM where I'm installing a Rails application on top of rbenv. I want to be able to automate some administrative operations so I can run them locally and have my script execute the commands over ssh. However when I do…
mattwise
  • 1,464
  • 1
  • 10
  • 20
-1
votes
2 answers

How to set the version of Ruby with rbenv on MacOS?

I was trying to follow the book "Agile Web Development with Rails 5.1" (on MacOS). I want ruby -v to be 2.4.1. Currently, ruby -v says ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19]. I want to use rbenv to manage the version of Ruby…
Michael Hagar
  • 626
  • 5
  • 20
-1
votes
1 answer

rbenv: no such command `init-'

I'm trying to install ruby in terminal via homebrew. So far I've entered: brew install rbenv and then I rain rbenv init after the command was run I received # Load rbenv automatically by appending # the following to ~/.bash_profile: eval "$(rbenv…
Eric W
  • 1
  • 3
-1
votes
1 answer

Rbenv Doesn't Work Trying to Install Latest Version of Ruby

I tried updating my Ruby to the current version 2.6.3 in the terminal. When the installation is complete and I check my version it says it's still 2.3.3. I've tried re-installing 2 times already, both times have not succeded. Installed ruby-2.6.3…
import_hill
  • 101
  • 3
-1
votes
1 answer

Ruby commands give me a conflicting message that says the local ruby installed in MacOS won't give me right permissions

I am attempting to get a project running om my Mac with High Sierra computer. After using rbenv and setting the correct version it cd into the project and run bundle install. It tells me the following files may not be writeable and tells me I have…
eookuro
  • 7
  • 3
-1
votes
1 answer

Cannot install rails version 4.2.5 on Ubuntu in WSL when I have ruby 2.2.1 active. nokogiri requires Ruby version >= 2.3.0

Trying to install rails version 4.2.5 on Ubuntu in Windows Subsystem for Linux on Windows 10 when I have ruby 2.2.1 installed and active I get the following error: ~$ gem install rails -v 4.2.5 ERROR: Error installing rails: nokogiri…
-1
votes
1 answer

Problem with command "rails generate model xxx"

I just created a ruby on rails project and I'm trying to generate a model with the command rails generate model Car and I'm getting this error: ~/Code/CarInfo (master) $ rails generate controller Test rbenv: version `ruby-2.3.7' is not installed…
user8684708
1 2 3
77
78