RejectedSoftware Forums

Sign up

Vibe.d dependencies missing in ubuntu?

Hi,

I've been playing with vibe for a couple of days now, mostly in Windows, however considering that I plan deploying the resulting app on a linux server I thought of setting up a vagrant machine with Ubuntu 12.04. Here's the setup:

  • dmd v2.064 installed from the .deb package.
  • dub installed from d-apt repo
  • vibe.d 0.7.17

Thing is I get and error during linking.

Compiling...
Linking...
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -levent_pthreads
collect2: ld returned 1 exit status
--- errorlevel 1
Error: Link command failed with exit code 1```

I get the same on xubuntu 14.10. Any suggestions?

Thanks!

 

Re: Vibe.d dependencies missing in ubuntu?

On Sat, 08 Feb 2014 16:48:24 GMT, Florin wrote:

Hi,

I've been playing with vibe for a couple of days now, mostly in Windows, however considering that I plan deploying the resulting app on a linux server I thought of setting up a vagrant machine with Ubuntu 12.04. Here's the setup:

  • dmd v2.064 installed from the .deb package.
  • dub installed from d-apt repo
  • vibe.d 0.7.17

Thing is I get and error during linking.

Compiling...
Linking...
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -levent_pthreads
collect2: ld returned 1 exit status
--- errorlevel 1
Error: Link command failed with exit code 1```

I get the same on xubuntu 14.10. Any suggestions?

Thanks!

 

vibe.d needs libevent. On Windows it automatically gets it for you, on other systems it does not. Try sudo apt-get install libevent and if it is still problematic try sudo apt-get install libevent-dev (but that should be unnecessary).

Re: Vibe.d dependencies missing in ubuntu?

Thank you! I already had installed libevent but I guess it wasn't installed properly. apt-get install libevent-dev did the trick.