asdf-ruby
asdf-ruby copied to clipboard
Installing openssl in presence of Homebrew LLVM
I was trying to build ruby 3.1.0 but was running into an issue with openssl. It was failing at
install libcrypto.a -> /Users/yrashk/.asdf/installs/ruby/3.1.0/openssl/lib/libcrypto.a
ranlib: error: Invalid option: '-c'
Turns out, this was because of my LLVM installation:
$ which ranlib
/opt/homebrew/opt/llvm/bin/ranlib
When I reran installation like this:
RANLIB=/usr/bin/ranlib asdf install ruby 3.1.0
everything worked.
Can this case be handled in some way?