Search code examples
dvibed

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. Following that produced a dub.json like:

{
 "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'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.

Thanks for any help!


Solution

  • Found answer on vibe.d forums: http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/post/11075

    Had to run sudo apt-get install libevent-dev.