Skip to content

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

@agordon

Description

@agordon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions