On Sun, 23 Mar 2014 19:34:10 GMT, Sean Charles wrote:

Hi, I have been using D for a few weeks and also Vibe.d to build a simple web site. It used to work fine and then something happened and I can no longer build. I installed dub using homebrew.

I have enclosed the full build output. It is baffling indeed because the initial output seems to say that it has found the necessary packages including "event" but the linker fails to do so. If anybody can suggest a solution I would be very happy indeed as I was really getting into building a site with Vide.d, even in beta it seems very very useful.

(...)
Linking...
dmd -of.dub/build/application-debug-posix.osx-x86_64-dmd-B20341C4806BDAA6B0D8707469CD933B/foo .dub/build/application-debug-posix.osx-x86_64-dmd-B20341C4806BDAA6B0D8707469CD933B/foo.o ../../../../.dub/packages/vibe-d-0.7.18/libvibe-d.a -L-levent -L-levent_pthreads -L-lssl -L-lcrypto -g
ld: library not found for -levent
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
FAIL .dub/build/application-debug-posix.osx-x86_64-dmd-B20341C4806BDAA6B0D8707469CD933B/ foo executable
Error executing command run: dmd failed with exit code 1
(...)

Looks like libevent isn't installed (but there have also been cases where it was installed, but still wasn't found). Try to see if brew install libevent fixes it. Unfortunately DUB currently has no knowledge of external (non-DUB) dependencies, but it's planned to at least give proper hints to the user in the future.