postmodern / ruby-install

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

Truffleruby Error: No available formula with the name "llvm@4" #360

Closed 0xdevalias closed 4 years ago

0xdevalias commented 4 years ago

Hit this when trying to install truffleruby since brew removed llvm@4 in https://github.com/Homebrew/homebrew-core/issues/46801

https://github.com/oracle/truffleruby/issues/1820 says that llvm isn't required as an external dependency since >= 19.3

This was documented in https://github.com/oracle/truffleruby/issues/1820 and fixed in rvm in https://github.com/rvm/rvm/pull/4815

Ref: https://github.com/oracle/truffleruby/issues/1820#issuecomment-557949636

ruby-install --install-dir '/Users/devalias/.rbenv/versions/truffleruby-19.3.0' 'truffleruby' '19.3.0'

Error: No available formula with the name "llvm@4"
!!! Installing dependencies failed!

⇒  ruby-install --version
ruby-install: 0.7.0

⇒  brew upgrade ruby-install
Warning: ruby-install 0.7.0 already installed
eregon commented 4 years ago

I made a PR to fix this: https://github.com/postmodern/ruby-install/pull/359

@postmodern @havenwood I think we should do a release to let users get that fix.

Until then a workaround (only needed on macOS) is:

$ brew install openssl
$ ruby-install --no-install-deps truffleruby
havenwood commented 4 years ago

Closing now that the fixed has been released with version 0.7.1.