[英]getting started with vibe.d
I'm trying to get vibe.d up and running through dub, as documented at http://vibed.org/docs#first-steps . 正如http://vibed.org/docs#first-steps所述 ,我正试图通过配音来振作起来。 Following that produced a dub.json like:
之后产生了一个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"]
}
When I run dub
, I get linking errors: 当我运行
dub
,我得到链接错误:
Linking...
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -levent_pthreads
collect2: ld returned 1 exit status
--- errorlevel 1
I've tried installing libevent with brew install libevent
, and played a little with adding a "dflags_dmd"
field to dub.json, but I can't seem to get it to link up properly. 我尝试使用
brew install libevent
,并在"dflags_dmd"
添加了一个"dflags_dmd"
字段,但我似乎无法正确连接。
Thanks for any help! 谢谢你的帮助!
Found answer on vibe.d forums: http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/post/11075 在vibe.d论坛上找到答案: http : //forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/post/11075
Had to run sudo apt-get install libevent-dev
. 不得不运行
sudo apt-get install libevent-dev
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.