我有以下代码:
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`
有人知道会发生什么
答案 0 :(得分:3)
您缺少一些库。阅读这篇文章:
您是如何安装Crystal的?