首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >运行水晶游戏时的错误

运行水晶游戏时的错误
EN

Stack Overflow用户
提问于 2016-03-29 05:48:51
回答 1查看 106关注 0票数 0

我有检查和安装,GCC安装。LLVM被更新。运行水晶游戏工作,然后崩溃与下面的错误。我可以看到本地主机输出。但是它会尝试运行代码,然后就会崩溃。

代码语言:javascript
复制
    Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.2.0

  CPUs-MacBook-Air:~ cpu$ crystal play
Listening on http://localhost:8080
ld: library not found for -levent
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc -o "/Users/cpu/Documents/homebrew/.crystal/crystal-run-play-1-1.tmp" "${@}"  -rdynamic  -lssl -lcrypto -lz /usr/local/Cellar/crystal-lang/0.14.2/src/ext/libcrystal.a -levent -lpcre -liconv -lgc -lpthread -ldl`
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-03-29 12:59:25

查看OSX安装页面:homebrew.html

您可能必须执行xcode的以下操作才能找到libevent:

代码语言:javascript
复制
$ xcode-select --install
$ xcode-select --switch /Library/Developer/CommandLineTools
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36276381

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档