centos crystal App 编译获取错误

App compilations in centos crystal obtain error

我有以下代码:

require "kemal"



get "/" do
  "Hello Kemal!"
end

Kemal.run

但是当我要在 centos 中启动应用程序时,它告诉我以下内容:

crystal run app

/usr/bin/ld: it can not be found -lz
/usr/bin/ld: it can not be found -lssl
/usr/bin/ld: it can not be found-lcrypto
/usr/bin/ld: it can not be found-lcrypto
collect2: error: ld returned the exit statusa 1
Error: execution of command failed with code: 1: `cc "${@}" -o '/root/.cache/crystal/crystal-run-aplicacion.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 -lm /usr/bin/../lib/crystal/lib/libgc.a -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/bin/../lib/crystal/lib -L/usr/lib -L/usr/local/lib`

有人知道会发生什么

您缺少一些库。阅读这篇文章:

你是如何安装 Crystal 的?