I have read the old threads on this error, run `brew upgrade`, and rerun `xcode-select --install`. Yet this error persists: it happens each time I run `crystal play`.
It seemed to start when I upgraded my MacBook to Mojave.
Help!?
Dean
Deans-MacBook-Pro-3:joy-data-crystal dean$ crystal play
Listening on http://127.0.0.1:8080
ld: library not found for -lssl (this usually means you need to install the development package for libssl)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/dean/.cache/crystal/crystal-run-play-1-1.tmp' -rdynamic -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lpcre -lgc -lpthread /usr/local/Cellar/crystal/0.27.0/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib`
Deans-MacBook-Pro-3:joy-data-crystal dean$ brew upgrade openssl
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.
Error: openssl 1.0.2p already installed
Deans-MacBook-Pro-3:joy-data-crystal dean$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Deans-MacBook-Pro-3:joy-data-crystal dean$