RejectedSoftware Forums

Sign up

Build Dub Failed

Hi,

I'm new to the D and vibe.d world and I tried to follow the great video tutorial posted on youtube.

I installed dub via hombrew, created a new vide.d application and tried to run it, but I got an error during the linking step.
I can't figure out what is the problem so I'm looking for some help.

Linking...
ld: library not found for -levent
clang: error: linker command failed with exit code 1 (use -v to see invocation)

You can find the entire console result here

Here is my configuration :

  • Mac OS X Mavericks
  • dmd 64 v2.064
  • dub v0.9.21
  • vibe.d >=0.7.17 (dub.json)

Thanks,

Re: Build Dub Failed

On Thu, 06 Mar 2014 02:28:45 GMT, Mickaël Bouchaud wrote:

I installed dub via hombrew, created a new vide.d application and tried to run it, but I got an error during the linking step.
I can't figure out what is the problem so I'm looking for some help.

Linking...
ld: library not found for -levent
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Hi there and welcome :)

It looks like you're missing a library on your build platform!

libevent >=2.0 is required by vibe.d, you'll find it with this command:

brew install libevent

Good luck!

Re: Build Dub Failed

On Thu, 06 Mar 2014 18:10:59 GMT, Etienne wrote:

On Thu, 06 Mar 2014 02:28:45 GMT, Mickaël Bouchaud wrote:

I installed dub via hombrew, created a new vide.d application and tried to run it, but I got an error during the linking step.
I can't figure out what is the problem so I'm looking for some help.

Linking...
ld: library not found for -levent
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Hi there and welcome :)

It looks like you're missing a library on your build platform!

libevent >=2.0 is required by vibe.d, you'll find it with this command:

brew install libevent

Good luck!

Hi Etienne and thanks, you were right. Installing libevent fixed my issue.