DUB problems
Daniel Kozak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Dec 31 01:23:09 PST 2015
V Thu, 31 Dec 2015 09:09:20 +0000
yawniek via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
napsáno:
> On Thursday, 31 December 2015 at 08:51:42 UTC, Daniel Kozak wrote:
> > I try to build vibe-d Hello world app with dub, but I have many
> > problems with dub, nothing works at all
> >
> > Error: Output file 'client.o' for module 'vibe.http.client'
> > collides with previous module 'vibe.db.mongo.client'. See the
> > -oq option
> >
> > and allmost nothing works as expected. How can I do one simple
> > thing:
> >
> > Compile vibe.d with libasync and with ldc compiler
>
> os? versions? it kind of depends.
>
> i just tested this on linux.
>
> dub init -t vibe.d foo
> cd foo
> cat dub.json
> {
> "name": "foo",
> "description": "A simple vibe.d server application.",
> "copyright": "Copyright © 2015, yannick",
> "authors": ["yannick"],
> "dependencies": {
> "vibe-d": "~>0.7.26"
> },
> "versions": ["VibeDefaultMain"],
> "subConfigurations": { "vibe-d": "libasync"}
> }
>
> ws01% cat dub.selections.json
> {
> "fileVersion": 1,
> "versions": {
> "memutils": "0.4.3",
> "vibe-d": "0.7.26",
> "libevent": "2.0.1+2.0.16",
> "libev": "5.0.0+4.04",
> "openssl": "1.1.4+1.0.1g",
> "libasync": "0.7.5"
> }
> }
>
> dub build --compiler=ldc -b release --combined
> ldc --version
> LDC - the LLVM D compiler (0.16.1):
> based on DMD v2.067.1 and LLVM 3.7.0
> dub --version
> DUB version 0.9.24-rc.2+18-g4fece3c
>
> note the dub switches
> compiling in debug mode or without --combined crashes!
>
OK after removing project and .dub at my home directory it seems
working, but after ctrl+c it hangs up and I must kill it with kill -9
command
More information about the Digitalmars-d-learn
mailing list