【问题标题】:Crystal build fails with linker errorCrystal 构建因链接器错误而失败
【发布时间】:2015-09-21 07:08:53
【问题描述】:

我刚刚尝试从语言文档中运行简单的 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`

程序已从the documentation复制粘贴。

我可以确认程序确实/确实在我的访客机器上运行,但不在我的主机上。两者都是 Ubuntu 14.04.3 安装。

【问题讨论】:

    标签: crystal-lang


    【解决方案1】:

    问题只是没有安装 SSL 库。如果你有同样的问题,你可以简单地运行sudo apt-get install libssl-dev。这应该会安装修复错误所需的一切。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-11
      • 1970-01-01
      • 2021-07-16
      • 1970-01-01
      相关资源
      最近更新 更多