Trying out chruby
and ruby-install
and installing Ruby 2.2.2 with ruby-install
was giving be the error:
directory not found for option '-L/usr/local/Cellar/openssl/1.0.2k/lib'
Setting the LDFLAGS
env var solved this for me:
export LDFLAGS=-L/usr/local/opt/openssl/lib