digitalmars.D - dub is not able to install any package
- Adil (45/46) Aug 13 2018 dub is unable to fetch any dependency from code.dlang.org
- Joakim (3/11) Aug 13 2018 Looks like you need to install a libcurl package also, in some
- Adil (3/14) Aug 13 2018 Thanks. It seems the `snap` version is not packaged with a
- Seb (3/20) Aug 13 2018 I opened an issue for you:
- Joseph Rushton Wakeling (4/7) Mar 12 2019 This should be fixed now, if you would like to retry:
- Seb (4/9) Aug 13 2018 How did you install D / dub?
dub is unable to fetch any dependency from code.dlang.org
Here's the dub.json file
````
{
"name" : "screener-d",
"description" : "Screener Daemon",
"sourcePaths": ["source/screener"],
"dflags": ["-J."],
"arch":"x86_64",
"configurations" : [
{
"name" : "screener-d",
"targetType": "executable",
"targetName": "bin/screener-d",
"platforms": ["linux"],
"mainSourceFile" : "source/main.d",
"dependencies" : {
"gelfd": "~>1.3.0"
}
}
],
"buildTypes": {
"release": {
"buildOptions": ["debugInfoC", "optimize", "inline",
"releaseMode"],
},
}
}
````
dub build
Package gelfd not found in registry at https://code.dlang.org/
(fallback ["registry at http://code.dlang.org/", "registry at
https://code-mirror.dlang.io/", "registry at
https://code-mirror2.dlang.io/", "registry at
https://dub-registry.herokuapp.com/"]): Failed to load curl,
tried "libcurl.so", "libcurl.so.4", "libcurl-gnutls.so.4",
"libcurl-nss.so.4", "libcurl.so.3".
Root package screener-d references unknown package gelfd
The package is https://code.dlang.org/packages/gelfd
Dub details are:
adil adil-HP-ENVY-Notebook:~/workspace/screener-d$ whereis dub
dub: /snap/bin/dub
adil adil-HP-ENVY-Notebook:~/workspace/screener-d$ dub --version
DUB version 1.9.0, built on May 31 2018
Aug 13 2018
On Monday, 13 August 2018 at 13:02:43 UTC, Adil wrote:Looks like you need to install a libcurl package also, in some place where dub can find it.dub buildPackage gelfd not found in registry at https://code.dlang.org/ (fallback ["registry at http://code.dlang.org/", "registry at https://code-mirror.dlang.io/", "registry at https://code-mirror2.dlang.io/", "registry at https://dub-registry.herokuapp.com/"]): Failed to load curl, tried "libcurl.so", "libcurl.so.4", "libcurl-gnutls.so.4", "libcurl-nss.so.4", "libcurl.so.3".
Aug 13 2018
On Monday, 13 August 2018 at 13:28:02 UTC, Joakim wrote:On Monday, 13 August 2018 at 13:02:43 UTC, Adil wrote:Thanks. It seems the `snap` version is not packaged with a libcurl. It worked when i switched to a `dub` installed via `apt`Looks like you need to install a libcurl package also, in some place where dub can find it.dub buildPackage gelfd not found in registry at https://code.dlang.org/ (fallback ["registry at http://code.dlang.org/", "registry at https://code-mirror.dlang.io/", "registry at https://code-mirror2.dlang.io/", "registry at https://dub-registry.herokuapp.com/"]): Failed to load curl, tried "libcurl.so", "libcurl.so.4", "libcurl-gnutls.so.4", "libcurl-nss.so.4", "libcurl.so.3".
Aug 13 2018
On Monday, 13 August 2018 at 13:37:28 UTC, Adil wrote:On Monday, 13 August 2018 at 13:28:02 UTC, Joakim wrote:I opened an issue for you: https://github.com/dlang-snaps/dmd.snap/issues/24On Monday, 13 August 2018 at 13:02:43 UTC, Adil wrote:Thanks. It seems the `snap` version is not packaged with a libcurl. It worked when i switched to a `dub` installed via `apt`Looks like you need to install a libcurl package also, in some place where dub can find it.dub buildPackage gelfd not found in registry at https://code.dlang.org/ (fallback ["registry at http://code.dlang.org/", "registry at https://code-mirror.dlang.io/", "registry at https://code-mirror2.dlang.io/", "registry at https://dub-registry.herokuapp.com/"]): Failed to load curl, tried "libcurl.so", "libcurl.so.4", "libcurl-gnutls.so.4", "libcurl-nss.so.4", "libcurl.so.3".
Aug 13 2018
On Monday, 13 August 2018 at 13:37:28 UTC, Adil wrote:Thanks. It seems the `snap` version is not packaged with a libcurl. It worked when i switched to a `dub` installed via `apt`This should be fixed now, if you would like to retry: https://github.com/dlang-snaps/dub.snap/pull/15 Sorry for the slow turnaround -- this was a busy period :-\
Mar 12 2019
On Monday, 13 August 2018 at 13:02:43 UTC, Adil wrote:Dub details are: adil adil-HP-ENVY-Notebook:~/workspace/screener-d$ whereis dub dub: /snap/bin/dub adil adil-HP-ENVY-Notebook:~/workspace/screener-d$ dub --version DUB version 1.9.0, built on May 31 2018How did you install D / dub? As Joakim mentioned curl is a dependency of std.net.curl which is used by dub.
Aug 13 2018









Seb <seb wilzba.ch> 