On Ubuntu 18.04 LTS, make gives this error. Crystal 0.24.2; LLVM: 4.0.0. OpenSSL is installed. I think I'm missing a package, but I can't figure out which one. Any help is greatly appreciated.
_main.o: In function `__crystal_main':
/usr/share/crystal/src/openssl/lib_ssl.cr:213: undefined reference to `SSL_library_init'
/usr/share/crystal/src/openssl/lib_ssl.cr:213: undefined reference to `SSL_load_error_strings'
/usr/share/crystal/src/openssl/lib_ssl.cr:213: undefined reference to `OPENSSL_add_all_algorithms_noconf'
/usr/share/crystal/src/openssl/lib_ssl.cr:213: undefined reference to `ERR_load_crypto_strings'
_main.o: In function `default_method':
/usr/share/crystal/src/openssl/ssl/context.cr:4: undefined reference to `SSLv23_method'
_main.o: In function `~procProc(LibCrypto::X509_STORE_CTX, Pointer(Void), Int32)@/usr/share/crystal/src/openssl/ssl/context.cr:100':
/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:34: undefined reference to `sk_num'
/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:35: undefined reference to `sk_value'
/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:(.text+0x58166): undefined reference to `sk_pop_free'
/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:66: undefined reference to `sk_pop_free'
/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:(.text+0x58257): undefined reference to `sk_pop_free'
/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:66: undefined reference to `sk_pop_free'
_main.o: In function `~procProc(Pointer(Void), Nil)@/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:66':
/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:(.text+0x58321): undefined reference to `sk_free'
_main.o: In function `~proc2Proc(Pointer(Void), Nil)@/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:66':
/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:(.text+0x58331): undefined reference to `sk_free'
_main.o: In function `~proc3Proc(Pointer(Void), Nil)@/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:66':
/usr/share/crystal/src/pointer.cr:(.text+0x58981): undefined reference to `sk_free'
_main.o: In function `~proc4Proc(Pointer(Void), Nil)@/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:66':
/usr/share/crystal/src/pointer.cr:(.text+0x58991): undefined reference to `sk_free'
_main.o: In function `~proc5Proc(Pointer(Void), Nil)@/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:66':
/usr/share/crystal/src/pointer.cr:(.text+0x589a1): undefined reference to `sk_free'
_main.o:/usr/share/crystal/src/pointer.cr:(.text+0x589b1): more undefined references to `sk_free' follow
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o '/home/lewisb/src/crystal/icr/bin/icr' -rdynamic -lreadline -lyaml -lz `command -v pkg-config > /dev/null && pkg-config --libs libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs libcrypto || printf %s '-lcrypto'` -lpcre -lm -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`
Makefile:7: recipe for target 'build' failed
make: *** [build] Error 1
On Ubuntu 18.04 LTS, make gives this error. Crystal 0.24.2; LLVM: 4.0.0. OpenSSL is installed. I think I'm missing a package, but I can't figure out which one. Any help is greatly appreciated.