Assistance with DUB

Basile B. via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 1 23:37:10 PDT 2016


On Tuesday, 1 November 2016 at 22:01:23 UTC, Alfred Newman wrote:
> Greetings,
>
> I need some help with dub libraries.
>
> Executing "dub list" in my machine, I got the following:
>
> Packages present in the system and known to dub:
> colorize ~master: 
> C:\Users\Alfred\AppData\Roaming\dub\packages\colorize-master\colorize\
> ...
> sqlite-d ~master: 
> C:\Users\Alfred\AppData\Roaming\dub\packages\sqlite-d-master\sqlite-d\
> x11 1.0.15: 
> C:\Users\Alfred\AppData\Roaming\dub\packages\x11-1.0.15\x11\
>
> *** Note that sqlite-d is listed there.
>
> When I try to run the code in the end of this thread, I got the 
> following error:
>
> compiling C:...\Projects\temp2.d
> C:\Users\Alfred\Dropbox\Dlang\Projects\temp2.d(8,8): Error: 
> module sqlited is in file 'sqlited.d' which cannot be read (***)
> import path[0] = C:\D\dmd2\src\phobos
> import path[1] = C:\D\dmd2\src\druntime\import
> import path[2] = 
> C:\Users\Alfred\AppData\Roaming\dub\packages\colorize-master\colorize\source
> import path[3] = 
> C:\Users\Alfred\AppData\Roaming\dub\packages\sqlite-d-master\sqlite-d
> import path[4] = 
> C:\Users\Alfred\AppData\Roaming\dub\packages\d2sqlite3-master\d2sqlite3\source
> import path[5] = C:\D\dmd2\windows\bin....\src\phobos
> import path[6] = C:\D\dmd2\windows\bin....\src\druntime\import
> error: the process (dmd) has returned the signal 1
> C:...\Projects\temp2.d has not been compiled
>
> I'm stucked. Please, can you help me out ?

To compile a DUB script (It looks like you tried to do that) add 
this:

/+ dub.sdl:
    name "dub_script"
    dependency "sqlite-d" version="~>0.1.0"
+/

before the module declaration. It acts as a description.


More information about the Digitalmars-d-learn mailing list