macOS Monterey: fails to install a lower Ruby version
- Dominant language
- Shell
- Stars
- 734
- Forks
- 156
- Avg merge
- 17h 6m
- Merged PRs (30d)
- 1
Description
### Describe the Bug
I could install 3 different versions of Ruby without problems:
```
~ asdf list ruby
2.7.3
3.0.0
3.0.2
```
But when trying to install a lower one (`2.6.5`), it raised the error:
```
~ asdf install ruby 2.6.5
Downloading openssl-1.1.1l.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1
Installing openssl-1.1.1l...
Installed openssl-1.1.1l to /Users/serguei/.asdf/installs/ruby/2.6.5
Downloading ruby-2.6.5.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.5.tar.bz2
Installing ruby-2.6.5...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 12.3 using ruby-build 20211109)
Inspect or clean up the working tree at /var/folders/yy/ld5smmzd38v1q3z259dwh8_w0000gn/T/ruby-build.20220315131245.95390.AuogfI
Results logged to /var/folders/yy/ld5smmzd38v1q3z259dwh8_w0000gn/T/ruby-build.20220315131245.95390.log
Last 10 log lines:
compiling ../.././ext/psych/yaml/emitter.c
compiling ../.././ext/psych/yaml/parser.c
5 warnings generated.
4 warnings generated.
linking shared-object zlib.bundle
1 warning generated.
linking shared-object psych.bundle
422 warnings generated.
linking shared-object date_core.bundle
make: *** [build-ext] Error 2
```
Used asdf version: `version: v0.9.0`
### Steps to Reproduce
run `asdf install ruby 2.6.5`
### Expected Behaviour
Have ruby 2.6.5 installed
### Actual Behaviour
1 warning generated.
linking shared-object psych.bundle
422 warnings generated.
linking shared-object date_core.bundle
make: *** [build-ext] Error 2
### Environment
```shell
macOS version: Monterey, `12.3`
```
### asdf plugins affected (if relevant)
Ruby
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by rerunning `asdf install ruby 2.6.5` on macOS Monterey and inspect the ruby-build log at the temporary path reported in the issue. Compare the failure with the successful Ruby versions and determine whether the plugin can support this installation; done means the cause and a verified resolution or limitation are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100