Crystal lang Crystal构建失败,链接器错误

Crystal lang Crystal构建失败,链接器错误,crystal-lang,Crystal Lang,我刚刚尝试从语言文档中运行简单的HTTP服务器。程序失败并出现错误 /usr/bin/ld: cannot find -lssl collect2: error: ld returned 1 exit status Error: execution of command failed with code: 1: `cc -o "/home/rasmus/dev/crystal/projects/hello/.crystal/crystal-run-hello.tmp" "${@}" -rdyn

我刚刚尝试从语言文档中运行简单的HTTP服务器。程序失败并出现错误

/usr/bin/ld: cannot find -lssl
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc -o "/home/rasmus/dev/crystal/projects/hello/.crystal/crystal-run-hello.tmp" "${@}"  -rdynamic  -lssl -levent -lrt -lpcl -lpcre -lgc -lpthread -ldl`
程序已从中复制粘贴


我可以确认程序确实在我的来宾计算机上运行,但在我的主机上不运行。这两个版本都是Ubuntu 14.04.3版本。

问题仅仅是没有安装SSL库。如果您有相同的问题,只需运行
sudo-apt-get-install-libssl-dev
。这应该安装修复错误所需的一切