postmodern / ruby-install

Installs Ruby, JRuby, TruffleRuby, or mruby
MIT License
1.91k stars 255 forks source link

Can't build Ruby 3 #390

Closed marcandre closed 3 years ago

marcandre commented 3 years ago

I have two machines, an old Mac Pro on High Sierra. Install = ok 🎉 A MacBook 12" on Mojave. Install = error. Note that I've been building 3.0.0-dev a few days ago without an issue on that machine. (sorry, I don't have time right now to investigate further)

$ rbenv install 3.0.0
rbenv: /Users/mal/.rbenv/versions/3.0.0 already exists
continue with installation? (y/N) y
Downloading openssl-1.1.1i.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/e8be6a35fe41d10603c3cc635e93289ed00bf34b79671a3a4de64fcee00d5242
Installing openssl-1.1.1i...
Installed openssl-1.1.1i to /Users/mal/.rbenv/versions/3.0.0

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

BUILD FAILED (Mac OS X 10.14.6 using ruby-build 20201225)

Inspect or clean up the working tree at /var/folders/w3/6zbbyd_x43z4ht2s5h5n6l540000gn/T/ruby-build.20201228134625.2575.cr0OtL
Results logged to /var/folders/w3/6zbbyd_x43z4ht2s5h5n6l540000gn/T/ruby-build.20201228134625.2575.log

Last 10 log lines:
Generating RDoc documentation
dyld: lazy symbol binding failed: Symbol not found: _rb_ext_ractor_safe
  Referenced from: /private/var/folders/w3/6zbbyd_x43z4ht2s5h5n6l540000gn/T/ruby-build.20201228134625.2575.cr0OtL/ruby-3.0.0/.ext/x86_64-darwin18/pathname.bundle
  Expected in: /Users/mal/.rbenv/versions/3.0.0/lib/libruby.3.0.dylib

dyld: Symbol not found: _rb_ext_ractor_safe
  Referenced from: /private/var/folders/w3/6zbbyd_x43z4ht2s5h5n6l540000gn/T/ruby-build.20201228134625.2575.cr0OtL/ruby-3.0.0/.ext/x86_64-darwin18/pathname.bundle
  Expected in: /Users/mal/.rbenv/versions/3.0.0/lib/libruby.3.0.dylib
tejasbubane commented 3 years ago

@marcandre The dyld: Symbol not found might be related to xcode. Maybe you should compare xcode versions on both machines. Sadly I don't have a Mac at the moment to reproduce the issue, but I've asked folks from https://github.com/postmodern/ruby-install/issues/389 to see if they can help here.

marcandre commented 3 years ago

Don't ask me why, but it compiled ok this morning 🎉