Questions tagged [rbenv]
a simple version manager for Ruby, with a plugin system to modify its behaviour.
1,139
questions
1
vote
1
answer
22
views
How to manage ruby version installed without rbenv in rbenv?
I had problems installing ruby with rbenv so I installed it with Homebrew.
The problem is that I still want to manage this ruby version with rbenv.
How can I do that?
0
votes
1
answer
28
views
rbenv and Apple m1. Failed installing ruby 3.2, 2.7 and 2.6
I can't install any ruby version with rbenv. I tried 2.6.10 2.7.7 or 3.2.0 .
This is the error I got when executing:
❯ rbenv install 3.2.0
To follow progress, use 'tail -f /var/folders/4v/...
0
votes
0
answers
30
views
Ruby don't want to change version or update ( MACBOOK PRO M1 )
I have a problem with ruby I installed it from homebrew ( Ruby version 3.2.0 )
When I use the command which -a ruby it returns me /usr/bin ==> System path and not the Homebrew path
So I changed the ...
-1
votes
0
answers
30
views
Mac M1 rbenv and ruby -v do not match
Thoughs as to why on an Apple M1
rbenv lists:
rbenv versions
system
2.7.6
* 3.1.2 (set by /Users/xxxxxx/.rbenv/version)
and ruby -v shows:
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal....
0
votes
0
answers
24
views
Can't figure out how to add rbenv shims to $PATH
I'm having difficulty getting rbenv to change my ruby version. I've reviewed the question here but still struggling: rbenv not changing ruby version
Then ran rbenv init after install, then ran env | ...
1
vote
0
answers
57
views
Cant install ruby version 2.6.6 on OSX Ventura 13.0.1 using rbenv
I'm trying to install ruby 2.6.6 on a mac running osx 13.0.1. I've tried rbenv and RVM both of which I've tried uninstalling and reinstalling and keep getting the same errors.
With rbenv this is the ...
1
vote
1
answer
36
views
Rails Cron Job Not running for configured global ruby version MacOS
I am using rbenv to manage multiple ruby versions. I have the global and shell ruby version set as 2.7.6. I am using rails 7.0.4. My macos version is Monterey 12.5.1. rbenv global also outputs 2.7.6.
...
0
votes
0
answers
48
views
Capistrano deploy error: Directory does not exist '/home/ubuntu/inventory/current'
I am trying to setup deployment with capistrano and using rbenv for managing ruby version. When i do cap production deploy, everything runs fine but right after running migrations successfully, cap is ...
0
votes
0
answers
45
views
Can not bundle after upgrading to os ventura
Has anybody an idea?
I trying to just bundle the app. I have reinstalled rbenv and the ruby versions and all looks kind of good. But I keep hitting this. Same with another project on a different ruby ...
0
votes
0
answers
15
views
bundle install fails due to ff1 gem even if gem install ffi is successful
Steps I did
Installed rbenv - Installation successful
rbenv install 3.1.2
Installed bundler gem - Successfull
gem install bundler
ran the bundle install command - Failed
bundle install
Output:
...
0
votes
0
answers
46
views
capistrano : deploy:migrating - The deploy has failed with an error: stack level too deep
I'm beginer in Ruby Rails game, and today i try to setup my little website on a VPS.
I followed instruction, to setup a VPS on Digitalocean. I've already a simple rails app with a postgresql database.
...
0
votes
1
answer
126
views
Set default Ruby version in rbenv
I'm attempting to setup rbenv to use Ruby 3.0.0 for Jekyll (according to this tutorial 3.0.0 is necessary on macos w/ M1)
I installed rbenv with homebrew and ruby 3.0.0 with rbenv install 3.0.0 and ...
0
votes
0
answers
28
views
Managing rubies with rvm but rbenv replying with ruby version not installed
I used to use rbenv to manage ruby versions. I uninstalled it because I had to switch to rvm to install an old version of ruby. Now in my project, if I do ruby -v I get ruby 2.3.1p112 (2016-04-26 ...
0
votes
1
answer
63
views
Rails ignores ruby installed by rbenv
I am using ruby 2.7.6 for my project. On my laptop (KDE Neon) it was installed via rbenv and was working correctly.
After KDE was updated today I started getting
Your Ruby version is 3.0.2, but your ...
3
votes
0
answers
265
views
init react-native rbenv version not installed
When I create a new react-native project with npx react-native init projectname, it create a .ruby-version file in the new project folder with ruby version 2.7.5
But on the react-native set up guide ...
0
votes
1
answer
861
views
Installing Ruby with rbenv on Arm Mac (M1 Chip) giving errors
I'm having a few issues with installing Ruby 2.6.6 using rbenv on the Arm Mac (M1 Chip), which works for my teammate, who has an intel processor. I've tried these solutions (1, 2, & 3) to no avail....
0
votes
1
answer
79
views
rbenv on wsl shows ruby version 2.5.0-dev
I installed rbenv on WSL but it only shows that I have ruby 2.5.0-dev. I checked ruby's website and it showed 3.1.2. I then checked rbenv on github and it showed that the updated rbenv is 3.1.2.
3
votes
0
answers
179
views
VSCode uses wrong ruby version
I'm having an issue with VSCode on Ubuntu. I have the ruby extension and the ruby-rubocop extensions installed but when I run the rubocop extension on save, I get 2 errors
rbenv: version '2.5.1' is ...
0
votes
1
answer
45
views
Bootstrap is wrong version in my rails project
I am going through a rails Udemy course, and we are using bootstrap. The instructor is on an older version and I started using the most recent version. Before long I discovered they are very different,...
0
votes
2
answers
406
views
cap production deploy | ActiveSupport::MessageEncryptor::InvalidMessage Caused by: OpenSSL::Cipher::CipherError:
I'm trying to deploy a Ruby-on-Rails project to my own dedicated server (ubuntu 2004.2022.1.0).
I'm using Ruby 3.0.2, Rbenv, Capistrano 3.17.1, Puma, Nginx.
But I'm failing on the deploy step.
If ...
0
votes
0
answers
30
views
How to install the same version of Ruby (say 3.1.2) twice in the same machine with rbenv? I'll call one 3.1.2 and one 3.1.2-test
I want to first test on 3.1.2-test and then proceed to the 3.1.2. Thanks for the attention!
-1
votes
1
answer
736
views
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 ...
0
votes
0
answers
22
views
rbenv- is it risky to rely on builtin shell commands such as "set", since builtins could be implemented differently by different shells?
I use zsh as my shell, and rbenv to manage my Ruby versions. I am diving into rbenv's internals to learn how it works. I type
vim `which bundle`
into my terminal and I see the following code:
1 #!...
1
vote
0
answers
59
views
Installing new Ruby versions failing after migrating from Macbook with M1 chip to Intel chip
So I migrated my user from a m1 chip to intel chip on Mac.
After that when I tried to run rbenv install 2.7.6 on my terminal. I get this error message
mkdir: /opt/homebrew: Permission denied
I ...
2
votes
0
answers
58
views
Efficiently running isolated 'bundle' invocations in parallel
I'm writing a developer tool for Ruby and as part of testing it against various gems, I'm running bundle commands like bundle cache and bundle install --local, which modify the state inside the Ruby ...
1
vote
1
answer
1k
views
How to install Ruby 3.0.4 on macOS Monterey with rbenv
I'm trying to install Ruby for programming on my macOS Monterey with Apple M1 chip.
I started off by following these steps:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/...
0
votes
1
answer
247
views
Ruby 2.2.1 is failing on install on mac
I have an older app that I constructed with ruby 2.2.1 I know it is past EOL but I need to get the app running so I can upgrade it. I am installing with rbenv but when I install I get this error.
...
0
votes
0
answers
168
views
ruby command not found after install using rbenv
I installed ruby using rbenv on a Ubuntu WSL2 distro
I was having problems yesterday with curl errors, but managed to get that fixed with some help.
However, now that I've installed ruby, my system is ...
0
votes
0
answers
170
views
Rbenv not persisting installed ruby-version
I Already installed ruby 3.0.2 using rbenv, but it keeps showing the error:
ruby-3.0.2' not installed
T!ll3: ~ () $ cd calendar/
Required ruby-3.0.2 is not installed.
To install do: 'rvm install &...
0
votes
1
answer
862
views
Command 'rbenv' not found, but can be installed with
I installed rbenv in my Ubuntu system with this command:
As you can see the installation was managed by homebrew, I thought git will be in charge of it, however, the installation was successful and I ...
0
votes
1
answer
91
views
Trying to create a rails app but keeps failing to setup
I'm trying to create my first rails app. I'm on a Macbook Pro, so macOS.
I've been following this guide setting up rbenv, rails etc.
https://www.digitalocean.com/community/tutorials/how-to-install-...
1
vote
0
answers
337
views
How to change the ruby version into container Docker
I'm trying to run the following command:
bundle install
But the output is:
root@b431398437b1:/hermes-app# bundle install
Your RubyGems version (2.7.6.2) has a bug that prevents `required_ruby_version`...
0
votes
0
answers
2k
views
Ruby version `ruby-3.1.2' is not installed after spring stop
Truly I don't get it what is wrong. I've got fresh project with Rails 7 and Ruby 3.1.2 which I thought I had installed successfully, based on my iTerm2 console:
$ ruby --version
ruby 3.1.2p20 (2022-04-...
1
vote
0
answers
707
views
Ruby rbenv ERROR: Ruby install aborted due to missing extensions
I want to install Ruby 3.1.2 using rbenv but for some indescribable reason I end up with the following error:
BUILD FAILED (macOS 12.4 using ruby-build 20220713)
Inspect or clean up the working tree ...
0
votes
1
answer
31
views
`-bash: rbenv: command not found` comes up every time I open a terminal on window. How do I fix this?
I have this bash: rbenv: command not found thing always coming up on my terminal whenever I open it and they appear four times as shown below.
I am using windows, please, how do I fix this? All ...
1
vote
0
answers
671
views
Ruby-build fails because 'The Ruby openssl extension was not compiled'
Whenever I try running rbenv install [version], after a few minutes the ruby-build fails and I get the following output:
Installing ruby-3.1.2...
ruby-build: using readline from homebrew
BUILD FAILED ...
0
votes
0
answers
54
views
Upgrading ruby-build on Pop!_OS when ~/.rbenv doesn't exist
I'm trying to update ruby-build so that I can get a later version of Ruby than 2.7 on my Pop!_OS machine (I need 3.0.2), and every guide I read says 'just git pull to the ~/.rbenv/plugins/ruby-build ...
1
vote
0
answers
28
views
Bundler failed on gem package em-udns -v '0.3.6.2' install
When I am trying to run bundle install on macOs , I got error on
An error occurred while installing em-udns (0.3.6.2), and Bundler cannot continue.
Make sure that `gem install em-udns -v '0.3.6.2' --...
0
votes
1
answer
244
views
RVM / rbenv / terminal $PATH error: (eval):18: parse error near `PATH=/usr/local/opt/...'
I noticed the following error in my Mac (Monterey version 12.4) terminal upon opening it today:
(eval):18: parse error near `PATH=/usr/local/opt/...'
I suspected that it was related to my installation ...
4
votes
1
answer
3k
views
rbenv build failures macos
When trying to use rbenv to install a new ruby version, I keep getting build failures on Mac OS:
trevoraron@Trevor-Aron api % rbenv install 2.6.7
Downloading ruby-2.6.7.tar....
2
votes
1
answer
664
views
Failed to install rbenv on macOS Monterey 12.3.1 Intel core i5
I have tried to install with normal installation (rbenv install 2.7.6) or with RUBY_CFLAGS still no luck!
rbenv --version
rbenv 1.2.0
,
gem which cocoapods
/Users/mymac/.rbenv/versions/2.7.2/lib/ruby/...
2
votes
1
answer
702
views
rbenv crashing when installing ruby binaries
I updated this Lenovo laptop to Ubuntu 22.04 LTS, installed Ruby (3.1.2), rbenv (1.1.2), then Rails (7.0.3) without issue. However, rbenv consistently crashes when I try to install new ruby ...
2
votes
3
answers
1k
views
When Running Rails--version, it keeps recognizing old Ruby version and not letting me check version
I'm trying to download rails onto my computer, and so the general version that it has is the following:
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
However, I keep trying to ...
1
vote
1
answer
1k
views
How to set path correctly from RBENV shims on Mac M1 with zsh
I'm having trouble setting up the rbenv paths
I follow the instructions as specified here: rbenv installation page
I run the command on a zsh terminal:
rbenv init
The terminal gives me the ...
0
votes
1
answer
392
views
How to use two ruby,rails version on same machine but different project?
Right now I have a project demo on my Desktop with versions
Ruby-2.6.3p62
Rails-4.2.11.3
Gem-3.0.3
and I want to create an another project new on my Desktop with versions
ruby-3.1.1p18
Rails-7.0.2.3
...
0
votes
1
answer
160
views
rails console, rbenv and rbenv-vars issues in ubuntu 20.04
Im experiencing a bizzare issue in ubuntu 20.04.
I've installed ruby 3.1.2, rails 6.1.5, rbenv and rbenv-vars.
Set up inside the app directory the .rbenv-vars with
RAILS_ENV=production
...
0
votes
0
answers
33
views
possible to use rbenv with ruby2 to install ruby3?
I'm trying to get ruby3 on ubuntu20.04 (which I must use for policy compliance reasons) and only includes ruby up to 2.7
this version of ubuntu provides rbenv, and the list of available interpreters ...
1
vote
0
answers
497
views
rbenv: command not found using docker
i am trying to install ruby 2.7 using rbenv on a docker environment, below is the relevant part of my docker file
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y gnupg2
RUN apt-get ...
2
votes
4
answers
2k
views
Troubles upgrading from ruby 2.7 to 3.0 - error: use of undeclared identifier 'RUBY_FUNCTION_NAME_STRING'
I've been struggling with trying to upgrade rails 3.0 for about a week now.
I'm not entirely sure what the issue is but I was thinking it could be due to the fact that I have both rvm and rbenv.
I've ...
4
votes
2
answers
13k
views
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 ...