Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker error (on linux) if libevent 1.4.X is installed #6

Open
agordon opened this issue Mar 23, 2014 · 0 comments
Open

Linker error (on linux) if libevent 1.4.X is installed #6

agordon opened this issue Mar 23, 2014 · 0 comments

Comments

@agordon
Copy link

agordon commented Mar 23, 2014

Hello,

Using 'dub' to create a sub 'vibe.d' application, the linking fails with the following:

$ dub
Checking dependencies in '/home/gordon/projects/test'
Building configuration "application", build type debug
Compiling...
Linking...
/data/gordon/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -levent_pthreads
collect2: error: ld returned 1 exit status
--- errorlevel 1
Error: Link command failed with exit code 1

Run 'dub help' for usage information.

The reason is that on this (old) system, 'libevent' still uses the old stable version 1.14.x instead of the 2.0.x version - and it does not include the "event_pthreads" library.

I do not know if 'dub' has a way to specify minimum required version (of a system library) during installation or compilation. Perhaps, at the very least, mention in the documentation or README that libevent version 2.0.X is required ?

-gordon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant