RejectedSoftware Forums

Sign up

Vibe.d example won't run. Xamarin Studio, D Language, Mac OS 10.10.2

Building: tcp-separate-example (Default)
Performing main compilation...
/usr/local/bin/dub build "tcp-separate-example" "--build=plain"
Building package tcp-separate-example in /Users/Matt/Downloads/vibe.d-master/examples/tcpseparate/
Building vibe-d ~master configuration "libevent", build type plain.
Running dmd...
Building tcp-separate-example ~master configuration "application", build type plain.
Compiling using dmd...
Linking...
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-plain-posix.osx-x86
64-dmd_2066-28E54944018C41958DFE4BCE71BFBAF6/ tcp-separate-example executable
Error executing command build: dmd failed with exit code 1.

Exit code 2
Build complete -- 1 error, 0 warnings

---------------------- Done ----------------------

Build: 1 error, 0 warnings

Any idea what I'm doing wrong? I downloaded the source and tried to run the example TCP application.

Re: Vibe.d example won't run. Xamarin Studio, D Language, Mac OS 10.10.2

Hey mate. Looks like you don't have libevent on your system. If you are running home-brew you can install it with:

brew install libevent.

Everything should link fine then.