Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 03, 2018 [dub] How to specify with dub a custom repository and build directory ? | ||||
---|---|---|---|---|
| ||||
Dear, As 99% of d project use dub as build and package manager. I would like to know how to use D libraries and D software shared to all user on linux architecture ? When I run: dub fetch <package name> A .dub directory is created into $HOME. I tried to provide another directory with --root parameter but that do not work. Currently I do not see how to build and install various D software at my works (HPC environment). To be able to use D in this environment I need to be able to set at least: - BUILD_DIR directory to perform build stage - DESTDIR directory to tell where the root "start", it is useful for staged build such as rpm do - PREFIX directory which will contains bin, include, lib(64), share directories - use installed D library by reading env var LIBRARY_PATH, PATH, CPATH Any highlight is welcome Thanks |
May 04, 2018 Re: [dub] How to specify with dub a custom repository and build directory ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bioinfornatics | On 04/05/2018 3:27 AM, bioinfornatics wrote:
> Dear,
>
> As 99% of d project use dub as build and package manager. I would like to know how to use D libraries and D software shared to all user on linux architecture ?
>
> When I run:
>
> dub fetch <package name>
>
> A .dub directory is created into $HOME. I tried to provide another directory with --root parameter but that do not work.
>
> Currently I do not see how to build and install various D software at my works (HPC environment).
>
> To be able to use D in this environment I need to be able to set at least:
> - BUILD_DIR directory to perform build stage
> - DESTDIR directory to tell where the root "start", it is useful for staged build such as rpm do
> - PREFIX directory which will contains bin, include, lib(64), share directories
> - use installed D library by reading env var LIBRARY_PATH, PATH, CPATH
>
>
> Any highlight is welcome
>
> Thanks
dub doesn't do platform specific installing.
It just handles building. What you want is out of scope and has been discussed.
|
May 03, 2018 Re: [dub] How to specify with dub a custom repository and build directory ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to rikki cattermole | On Thursday, 3 May 2018 at 15:30:28 UTC, rikki cattermole wrote:
> On 04/05/2018 3:27 AM, bioinfornatics wrote:
>> [...]
>
> dub doesn't do platform specific installing.
> It just handles building. What you want is out of scope and has been discussed.
Ok but as all D projects can be built only with dub, How can we do ?
should I to create and maintain a makefile or others for each D projects ?
Thanks
|
May 04, 2018 Re: [dub] How to specify with dub a custom repository and build directory ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bioinfornatics | On 04/05/2018 3:44 AM, bioinfornatics wrote: > On Thursday, 3 May 2018 at 15:30:28 UTC, rikki cattermole wrote: >> On 04/05/2018 3:27 AM, bioinfornatics wrote: >>> [...] >> >> dub doesn't do platform specific installing. >> It just handles building. What you want is out of scope and has been discussed. > > Ok but as all D projects can be built only with dub, How can we do ? Not all, and it should be pretty straight forward to do yourself. > should I to create and maintain a makefile or others for each D projects ? > > Thanks No. Build with the preferred build manager, package/install as required by your platform like you would do for any other language. |
Copyright © 1999-2021 by the D Language Foundation