asdf-ruby icon indicating copy to clipboard operation
asdf-ruby copied to clipboard

asdf-ruby on macOS 12.6 Apple Silicon with rb 3.1.3 fails with install latest

Open ylluminate opened this issue 3 years ago • 5 comments

$ asdf install ruby latest
To follow progress, use 'tail -f /var/folders/qt/ym5k8frn5x12m5cmc9fn087r0000gn/T/ruby-build.20221202174504.62275.log' or pass --verbose
Downloading openssl-3.0.7.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/83049d042a260e696f62406ac5c08bf706fd84383f945cf21bd61e9ed95c396e
Installing openssl-3.0.7...
Installed openssl-3.0.7 to /Users/user/.asdf/installs/ruby/3.1.3

Downloading ruby-3.1.3.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.3.tar.gz
Installing ruby-3.1.3...
ruby-build: using readline from homebrew
ruby-build: using gmp from homebrew

BUILD FAILED (macOS 12.6.2 using ruby-build 20221124)

Inspect or clean up the working tree at /var/folders/qt/ym5k8frn5x12m5cmc9fn087r0000gn/T/ruby-build.20221202174504.62275.R9nz9x
Results logged to /var/folders/qt/ym5k8frn5x12m5cmc9fn087r0000gn/T/ruby-build.20221202174504.62275.log

Last 10 log lines:
	from ./tool/rbinstall.rb:899:in `block in install'
	from ./tool/rbinstall.rb:713:in `no_write'
	from ./tool/rbinstall.rb:899:in `install'
	from ./tool/rbinstall.rb:1060:in `block (2 levels) in <main>'
	from ./tool/rbinstall.rb:1044:in `foreach'
	from ./tool/rbinstall.rb:1044:in `block in <main>'
	from ./tool/rbinstall.rb:1116:in `block in <main>'
	from ./tool/rbinstall.rb:1113:in `each'
	from ./tool/rbinstall.rb:1113:in `<main>'
make: *** [do-install-all] Error 1

Full log: ruby-build.20221202174504.62275.log

ylluminate avatar Dec 02 '22 23:12 ylluminate

Same here, I can install the 3.2.2 but its failed when I try install the 3.1.3

joseneto avatar Feb 28 '24 00:02 joseneto

same here, apple macbook pro m3

BUILD FAILED (macOS 14.4 on arm64 using ruby-build 20240709.1)

DarlonHenrique avatar Jul 09 '24 14:07 DarlonHenrique

@jdx would you happen to have any thoughts here? My issues with Ruby and asdf have been in context of using with Mise, but I'm doubtful they actually have to do with Mise.

ylluminate avatar Jul 09 '24 15:07 ylluminate

definitely nothing to do with asdf, mise, or asdf-ruby

jdx avatar Jul 09 '24 19:07 jdx

i solve the issue for me running the commands to install the system dependencies listed here: https://github.com/rbenv/ruby-build/wiki#suggested-build-environment

in my case using using a MacOs 14.5 (23F79) was that commands:

# install Xcode Command Line Tools
xcode-select --install
# install dependencies with Homebrew
brew install openssl@3 readline libyaml gmp

after that i remove the plugin

asdf plugin remove ruby
# asdf plugin remove erlang

and add again with

asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git

DarlonHenrique avatar Jul 11 '24 12:07 DarlonHenrique