我正试图让vibe.d在dub中运行,就像在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"字段,但是我似乎无法让它正确地连接起来。
谢谢你的帮助!
发布于 2014-09-01 06:10:00
在vibe.d论坛上找到答案:http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/post/11075
不得不运行sudo apt-get install libevent-dev。
https://stackoverflow.com/questions/25464122
复制相似问题