Getting started with vibe.d
I'm trying to get vibe.d up and running through dub as described at http://vibed.org/docs#first-steps . After that dub.json appeared:
{
"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:
Linking...
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -levent_pthreads
collect2: ld returned 1 exit status
--- errorlevel 1
I tried to install libevent with brew install libevent
and played around a bit with adding a field "dflags_dmd"
to dub.json, but I can't get it to connect correctly.
Thanks for any help!
+3
source to share
1 answer
Found answer on vibe.d forums: http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/post/11075
I had to run sudo apt-get install libevent-dev
.
+1
source to share