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

Installing openssl in presence of Homebrew LLVM

Open yrashk opened this issue 3 years ago • 0 comments

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?

yrashk avatar Feb 16 '22 21:02 yrashk