正如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
我已尝试使用brew install libevent
安装libevent,并在向dub.json添加"dflags_dmd"
字段时稍微玩了一下,但我似乎无法将其正确链接。
感谢您的帮助!
答案 0 :(得分:1)
在vibe.d论坛上找到答案:http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/post/11075
必须运行sudo apt-get install libevent-dev
。