我正在尝试让 vibe.d 启动并通过配音运行,如http://vibed.org/docs#first-steps中所述。随后产生了一个 dub.json,如:
{
"name": "accounts",
"description": "A simple vibe.d server application.",
"copyright": "Copyright © 2014, aaron",
"authors": ["aaron"],
"dependencies": {
"vibe-d": ">=0.7.17"
},
"versions": ["VibeDefaultMain"]
}
当我运行时dub
,我得到链接错误:
Linking...
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -levent_pthreads
collect2: ld returned 1 exit status
--- errorlevel 1
我尝试使用 安装 libevent brew install libevent
,并尝试在 dub.json 中添加一个"dflags_dmd"
字段,但我似乎无法让它正确链接。
谢谢你的帮助!