Questions tagged [rbenv]
a simple version manager for Ruby, with a plugin system to modify its behaviour.
1,176
questions
-2
votes
0
answers
40
views
OpenSSL not visible to ruby gem command on sonoma [closed]
I've done a search of my problem - what's happening for me is OpenSSL is throwing errors since I've upgraded to Sonoma. The gem command in my ruby version doesn't seem to be able to locate the ...
-2
votes
0
answers
38
views
Ineffective installing ruby on apple M2
We are failing at installing ruby on an apple M2. We do the basics:
Install homebrew
brew install rbenv ruby-build
rbenv install 3.2.2
rbenv global 3.2.2
But then ruby -v still reports 2.6, the ...
1
vote
1
answer
54
views
rbenv says installed version is not installed
I just installed ruby 3.0.4 using rbenv install 3.0.4, which worked, but rbenv still says:
$ rbenv versions
rbenv: version `3.0' is not installed (set by /home/dombek/code/.ruby-version)
system
3....
0
votes
0
answers
45
views
Suck on "checking if fork works with pthread..." when installing ruby 2.5.7 on linux by using rbenv
I am now follow the following tutorial (https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-22-04) to install ruby 2.5.7 by rbenv. When I user the ...
0
votes
1
answer
96
views
Why is gem telling me the current ruby version is 2.5.0 when it's not?
Context: I'm trying to install jekyll on Ubuntu 18.04 LTS so that I can work on a GitHub Pages site without having to deploy my changes to production every time I want to view them.
Here's the ...
-1
votes
1
answer
135
views
OpenSSL error when installing JRuby with rbenv on MacOS
I am getting the following error when I run rbenv install jruby-9.4.2.0. The error says OpenSSL isn't available, but as far as I can tell, it is available in multiple places and forms (see "...
0
votes
0
answers
58
views
Problem installing openssl 2.2.1 gem in MacOS
I am working in a project where the openssl (2.2.1) gem is used and ruby 2.7.5 is used. I successfully installed Ruby 2.7.5 with rbenv (ruby-build helped install it by downloading openssl 1.1.1).
...
0
votes
0
answers
505
views
BUILD FAILED (macOS 12.6.8 using ruby-build 20230904) [rbenv install 3.1.2]
I have been trying to install ruby 3.1.2 using rbenv install on my MacBook Air (13-inch, 2017) with processor 2.2 GHz Dual-Core Intel Core i7. I know that it is getting long in the tooth because I'm ...
0
votes
0
answers
30
views
Error while installing any specific version of ruby through rvm in mac m1
I am facing an issue while installing any version of ruby through rvm in Mac m1. Globally, I have installed ruby version 3.0.0 but for a project, I needed version 3.0.2 but it gives me the following ...
0
votes
0
answers
202
views
Fastlane uses the wrong ruby version
Unable to use fastlane android codepush and resulting this error. Expected using ruby 2.7.4 because I already set ruby path installed with rbenv but fastlane use ruby system instead which version 2.6....
0
votes
1
answer
108
views
Rbenv BUILD FAILED (Raspbian 11 using ruby-build 20230717-7-gf170c16)
I am trying to install ruby 3.2.2 on a raspberry pi 4. I followed all the steps using the GitHub repository, git clone method but when I get to the rbenv install 3.2.2 I get what I assume to be an ARM ...
0
votes
1
answer
28
views
Not able to switch from Python to Ruby development envrionment in Ubuntu WSL
I'm having difficulties to switch from Python environment to Ruby environment. The terminal seems like not responding no matter how many time I keyed in rbenv global 3.1.2. It stuck at pyenv 3.10.6. I ...
0
votes
2
answers
198
views
Error Bundling Puma M2 Macbook Ruby on Rails app
I'm working on a Ruby on Rails application, but I get an error every time I try to run my server using the following command:
bundle exec puma -C ./config/puma.rb
the error logs:
106454000-10645c000 ...
0
votes
1
answer
15
views
Debugger statement inside `rubygems_plugin.rb` is not reached when running `bundle install`
While reading through RBENV's rubygems_plugin.rb file, I encountered the following line of code:
if defined?(Bundler::Installer) && Bundler::Installer.respond_to?(:install) && !Bundler:...
0
votes
2
answers
116
views
How to get mailcatcher to work with rbenv, bundler, and ruby 3.2.0?
I've completely removed rvm and installed 0.5.10 of mailcatcher. When I run mailcatcher I get the following error:
.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-3.2.22.5/lib/...
0
votes
0
answers
37
views
Mac M1 React Native - IOS Pod install fails and ruby cant find the desired version
In my React native app, when i try pod install i get a ruby
version not found error.
benv: version `3.1.4' is not installed
when running rbenv install 3.1.4
It throws this error
ruby-build: ...
0
votes
1
answer
472
views
Unable to install Ruby 3.1.4 via rbenv on AlmaLinux/CentOS 7
I am trying to install Ruby 3.14 on an AlmaLinux distrubtion via rbenv. Seems the build and the compiler are not compatible.
Has anybody seen this issue before and possibly found a solution?
It is ...
0
votes
0
answers
48
views
failures when rails command send
I am trying to open an old Rails 5 app. I haven't code for years and it's hard to remember...
Also I have a new computer (mac 0S Ventura) and I had to reinstall hombrew, xcode, ruby etc...
The ruby ...
0
votes
1
answer
32
views
How to delete one copy of Ruby? (M1 Mac with zsh)
Running which -a ruby returns me the following:
/Users/USERNAME/.rbenv/shims/ruby
/Users/USERNAME/.rbenv/shims/ruby
/usr/bin/ruby
The /usr/bin/ruby, I presume, is the pre-installed version of Ruby ...
0
votes
1
answer
107
views
*87 connect() to unix:///home/ubuntu/app_name/shared/tmp/sockets/puma.sock failed (111: Connection refused) while connecting to upstream)
I am trying to deploy a rails 7 application on aws-lightsail unbuntu 20.04 instance using capistrano3 gem. After deployment, I see 502 bad gateway nginx page in browser. When I check puma_error.log, ...
-2
votes
1
answer
51
views
How to install ruby-build for rbenv on Ubuntu?
I installed rbenv. What is the easiest way to install ruby-build?
I've tried brew, but it displayed few errors.
1
vote
1
answer
260
views
Unable to change Ruby path from macOS package to Homebrew package (running macOS Monterey with Intel Core i7)
Summary of issue and current configuration
I have installed the latest versions of rbenv and ruby-build via Homebrew on macOS Monterey (currently running version 12.6.5 with Intel Core i7 chip), ...
1
vote
1
answer
191
views
Should I uninstall rbenv before installing asdf?
I wish to install asdf in order to provide for multiple language environments (ruby/python/postgres..) for macOS development. Previously I have used rbenv to install ruby, and use several ruby gems, ...
0
votes
1
answer
88
views
Debian 11, Mastodon server, Ruby instalation problem, user mastodon
In the many manuals described process of [Mastodon instalation] (https://docs.joinmastodon.org/admin/install/), there are wrote:
"rbenv must be installed for a single Linux user, therefore, first ...
0
votes
1
answer
69
views
puma-dev do not work with error message rbenv: puma: command not found
When try to open site get error message unexpected exit:
Check dev logs tail -f log/development.log:
rbenv: puma: command not found
The `puma' command exists in these Ruby versions:
2.4.0
While ...
1
vote
2
answers
702
views
Ruby 3.0.6 for Mastodon 4.1.2: Ubuntu 22.0.4 cannot find version as the user mastodon
I'm a bit confused, and it's actually a Ruby- or more a Ubuntu-problem, not mastodon-related in a regular way.
For Mastodon 4.1.2 it's recommend (and necessary) to install Ruby 3.0.6. As root it's no ...
2
votes
2
answers
3k
views
Installing Ruby 3.2.2 using rbenv on macOS M2: Missing psych and libyaml issues
I am using rbenv on a Mac with an M2 CPU. I have ruby 2.7.2 installed and want to also install ruby 3.2.2. When running rbenv install 3.2.2, I get the following error:
yaml.rb:3: warning: It seems ...
0
votes
0
answers
36
views
Running the rails console command will show the rails default help page
I have a bit of a weird situation. I'm using rbenv on my production server.
Now I wanted to access the console:
cd $HOME/rails/current
RAILS_ENV=production bundle exec rails console
Now Instead of the ...
1
vote
1
answer
362
views
Why won't rbenv or chruby switch to an installed version of Ruby?
I'm trying to get Jekyll running on my Mac M1. This requires a Ruby install. I had everything working a couple days ago, but must have changed something and now I cannot make sense of why it's no ...
0
votes
0
answers
62
views
When I try to install ruby 3.3.0-dev with rbenv it says BUILD FAILED, how do I fix this?
$ rbenv install 3.3.0-dev
To follow progress, use 'tail -f /tmp/ruby-build.20230327204531.21780.log' or pass --verbose
Cloning https://github.com/ruby/ruby.git...
Installing ruby-master...
BUILD ...
0
votes
0
answers
72
views
rbenv install -l homebrew error on Ubuntu
I've been trying to install and use rbenv on an ubuntu 22.04 image installed on an M2 ARM mac deployed with Multipass.
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer |...
0
votes
0
answers
719
views
when I'm trying to create a new app using `rails new` command it throws this error saying I have ruby version 2.6.x. but my global version 2.7.5
When I'm trying to create a rails app using rails new a--name command. it throws me this error saying I currently have 2.6.10 but when I find out the version I'm using ruby -v it still gives me
ruby ...
-1
votes
1
answer
405
views
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, ...
0
votes
1
answer
48
views
Typing "ruby filename.rb" does nothing as well as ruby -v
I am new to programming and I just cannot solve this problem. I've installed rbenv and ruby and both of them were working fine until I tried installing gems. I have reinstalled ruby set it on global ...
1
vote
1
answer
205
views
Pod install is no longer working in one of my react-native projects
I was working on a react-native app a few months back, I've just resumed work on it and I'm having issues with pod install.
In the meantime, I've been working on other projects while this was on pause ...
0
votes
1
answer
60
views
rbenv: dynamically extend $PATH for gem binaries
I got rbenv installed, and it works fine:
$ rbenv local
3.2.0
$ ruby --version
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
I installed the gem rufo to format my code, which worked fine:...
1
vote
1
answer
545
views
installing rbenv on mac failure
I am trying to install rbenv. I tried rbenv install 3.2.0 but I received:
BUILD FAILED (Mac OS X 10.15.7 using ruby-build 20230202)
Inspect or clean up the working tree at /var/folders/yk/...
3
votes
2
answers
3k
views
Unable to install Ruby 3.2.0 with Rbenv -- Missing Pysch gem
I'm currently trying to install Ruby 3.2.0 with Rbenv and I'm getting this error every time.
BUILD FAILED (Ubuntu 22.04 using ruby-build 20230202)
Inspect or clean up the working tree at /tmp/ruby-...
1
vote
2
answers
5k
views
Building new project gives error rbenv: version `2.7.6' is not installed
on building my new react native project with react native 0.70 using npx react-native init command it gives error while installing bundler that
rbenv: version `2.7.6'
is not installed (set by /Users/...
3
votes
2
answers
2k
views
Installing Ruby version using rbenv
I have been trying to install React Native into my Mac. In the installation docs, it requires Ruby version of 2.7.6 have been to be installed.
I have installed a new Ruby version using rbenv manager ...
2
votes
2
answers
3k
views
Unknown ruby interpreter version (do not know how to handle): File.readFile.join__dir__,.ruby-version.strip
I just installed a new react native project v 0.71.1. As soon as the cd into my project I get any error saying
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ...
1
vote
1
answer
1k
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?
2
votes
1
answer
8k
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/...
1
vote
0
answers
621
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 ...
0
votes
1
answer
85
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
112
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
1
answer
864
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
200
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
114
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
97
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 ...