Questions tagged [ruby-build]
18 questions
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
10
votes
2 answers
rbenv install --list not showing all versions on ubuntu 18.04 LTS (ruby 2.7.1)
In the attempt to install ruby 2.7.1 using rbenv I noticed the version was not listed on my ubuntu 18.04
$ rbenv install -l | grep 2.7.
2.7.0-dev
2.7.0-preview1
jruby-9.2.7.0
rbx-2.71828182

Bogdan
- 453
- 4
- 16
7
votes
1 answer
BUILD FAILED (macOS 12.1 using ruby-build 20211203 (ruby 3.0.2) macOS Monterey
After upgrading to the latest macOS (Monterey), I was unable to install the new ruby version (3.0.2). Has anyone had a similar issue that they were able to resolve?
Downloading openssl-1.1.1l.tar.gz...
->…

QuangAnh
- 91
- 1
- 5
6
votes
3 answers
Why do I get the error 'The Ruby openssl extension was not compiled ERROR: Ruby install aborted due to missing extensions'?
When I run
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl@3/3.0.1 rbenv install 3.1.0
I get this output:
Downloading ruby-3.1.0.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.0.tar.gz
Installing…

jeremy wentworth
- 380
- 4
- 7
5
votes
3 answers
Inspect or clean up the working tree when installing Ruby on Mac M1
I'm trying to install Ruby 2.5.1 by running rbenv install 2.5.1 and keep getting the below failure:
BUILD FAILED (macOS 12.0.1 using ruby-build 20211203)
Inspect or clean up the working tree at…

Cole S
- 408
- 1
- 3
- 13
3
votes
0 answers
Not able Install ruby 2.2.4 in mac os 10.15.6 catalina-openssl, ruby, zlib failing error
I'm trying to install ruby 2.2.4 in mac os catalina 10.15.6 and it failing:
Error running 'env GEM_HOME=/Users/asmitakalena/.rvm/gems/ruby-2.2.4@global GEM_PATH= /Users/asmitakalena/.rvm/rubies/ruby-2.2.4/bin/ruby -d…

Asmita
- 183
- 2
- 14
3
votes
1 answer
rbenv doesn't have the ruby version and the ruby-build plugs directory doesn't exist, what to do?
rbenv doesn't show the newer versions of Ruby.
Various guides say to update ruby build but I don't have the ruby-build directory set up to do that in my installation.
What should I do?

Michael Durrant
- 93,410
- 97
- 333
- 497
2
votes
0 answers
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 installation (AFAICT this modification this is not…

typesanitizer
- 2,505
- 1
- 20
- 44
2
votes
1 answer
BUILD FAILED (OS X 10.14.6 using ruby-build 20190828) Installing Ruby via rbenv
I'm trying to install ruby 2.6.4 via rbenv on macOS Mojave
rbenv install 2.6.4
But every time I try it gives me:
ruby-build: using openssl from homebrew
Downloading ruby-2.6.4.tar.bz2...
->…

Lahiru Jayaratne
- 1,684
- 4
- 31
- 35
1
vote
0 answers
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 at…

mr_muscle
- 2,536
- 18
- 61
1
vote
2 answers
rbenv / ruby-build installs fail for ruby versions 1.9.3, 2.2.0, 2.2.5 with xcode command line tools 12
Ruby versions less than 2.3.1 fail to install when clang --version is 12 or greater. To reproduce the problem, first get xcode command line developer tools version 12 via software update or wipe your mac and install homebrew:
# homebrew installs…

burnettk
- 13,557
- 4
- 51
- 52
0
votes
0 answers
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: definition not found: 3.1.4
See all available versions…

James Nicholson
- 987
- 10
- 20
0
votes
1 answer
Ruby won't install new version
I'm trying to install Ruby 2.7.6 but when I run
% rbenv version
I get:
rbenv: version 2.7.6' is not installed (set by /Users/[USER]/Documents/[FOLDER]/.ruby-version)
I have file .ruby-version containing: 2.7.6
When running: %. rbenv install
It…

Rich
- 970
- 2
- 16
- 42
0
votes
0 answers
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-12 revision 4491bb740a) [x86_64-darwin21]
But…

mr_muscle
- 2,536
- 18
- 61
0
votes
1 answer
Ruby 3.0.3 install stdlib.h insert _Nonnull if the pointer should never be null
I can't install ruby 3.0.3. Tried many different options.
rbenv install 3.0.3
Downloading openssl-1.1.1l.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1
Installing…

Al17
- 431
- 7
- 20