Crystal构建失败,显示“ld: library not found for -lssl”。

3

我刚开始做一个全新的Crystal应用程序,添加了Kemal,在从Kemal文档中构建“Hello World!”应用程序时,遇到以下问题:

$ crystal build --release src/orderprinterlinks.cr ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation)

在OSX 10.12.4上

有什么想法,为什么无法找到库?

2个回答

3

修复!错误与Crystal / Kemal无关...运行下面的命令即可解决:

xcode-select --install

似乎在升级XCode版本时,XCode CLI工具会被静默删除,因此运行此命令可以将它们添加回来,然后一切正常!


1
$ xcode-select --install
$ xcode-select --switch /Library/Developer/CommandLineTools

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接