www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Problem compiling Vibe.d First step

reply "chmike" <christophe meessen.net> writes:
Hello,

I'm trying to compile and run the Vibe.d First Step example 
[http://vibed.org/docs#first-steps] but I have unresolved 
libraries error from the linker :

Linking...
/usr/bin/ld: ne peut trouver -levent
/usr/bin/ld: ne peut trouver -levent_pthreads
/usr/bin/ld: ne peut trouver -lssl
/usr/bin/ld: ne peut trouver -lcrypto

On the vibe.d web page I don't see any dependency information and 
which version of these libraries are required. Where can I find 
this information ?

I don't even know how to determine the vibe.d version my code is 
compiled against.
Aug 30 2013
next sibling parent reply "chmike" <christophe meessen.net> writes:
 /usr/bin/ld: ne peut trouver -levent
 /usr/bin/ld: ne peut trouver -levent_pthreads
 /usr/bin/ld: ne peut trouver -lssl
 /usr/bin/ld: ne peut trouver -lcrypto
All four libraries (amd64) are installed, at least libevent, libevent_pthreads and libssl. Does it expect 32bit library versions ?
Aug 30 2013
parent "Dicebot" <public dicebot.lv> writes:
On Friday, 30 August 2013 at 12:51:16 UTC, chmike wrote:
 Does it expect 32bit library versions ?
It may happen if you use 32-but dmd (or it is set to use -m32 in dmd.conf)
Aug 30 2013
prev sibling parent "Dicebot" <public dicebot.lv> writes:
On Friday, 30 August 2013 at 12:45:22 UTC, chmike wrote:
 Hello,

 I'm trying to compile and run the Vibe.d First Step example 
 [http://vibed.org/docs#first-steps] but I have unresolved 
 libraries error from the linker :

 Linking...
 /usr/bin/ld: ne peut trouver -levent
 /usr/bin/ld: ne peut trouver -levent_pthreads
 /usr/bin/ld: ne peut trouver -lssl
 /usr/bin/ld: ne peut trouver -lcrypto

 On the vibe.d web page I don't see any dependency information 
 and which version of these libraries are required. Where can I 
 find this information ?

 I don't even know how to determine the vibe.d version my code 
 is compiled against.
A bit more detailed manual setup is documented in vibe.d github repository manual : https://github.com/rejectedsoftware/vibe.d Most likely, you need to install libevent and openssl to fix linking errors. What is the way you have installed vibe.d with? `dub` package manager is usually considered default and most user-friendly approach and it should take care of dependencies. There is also an AUR package for Arch Linux (don't know about other distros)
Aug 30 2013