www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dub is not able to install any package

reply Adil <a a.com> writes:
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
next sibling parent reply Joakim <dlang joakim.fea.st> writes:
On Monday, 13 August 2018 at 13:02:43 UTC, Adil wrote:
 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".
Looks like you need to install a libcurl package also, in some place where dub can find it.
Aug 13 2018
parent reply Adil <a a.com> writes:
On Monday, 13 August 2018 at 13:28:02 UTC, Joakim wrote:
 On Monday, 13 August 2018 at 13:02:43 UTC, Adil wrote:
 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".
Looks like you need to install a libcurl package also, in some place where dub can find it.
Thanks. It seems the `snap` version is not packaged with a libcurl. It worked when i switched to a `dub` installed via `apt`
Aug 13 2018
next sibling parent Seb <seb wilzba.ch> writes:
On Monday, 13 August 2018 at 13:37:28 UTC, Adil wrote:
 On Monday, 13 August 2018 at 13:28:02 UTC, Joakim wrote:
 On Monday, 13 August 2018 at 13:02:43 UTC, Adil wrote:
 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".
Looks like you need to install a libcurl package also, in some place where dub can find it.
Thanks. It seems the `snap` version is not packaged with a libcurl. It worked when i switched to a `dub` installed via `apt`
I opened an issue for you: https://github.com/dlang-snaps/dmd.snap/issues/24
Aug 13 2018
prev sibling parent Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
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
prev sibling parent Seb <seb wilzba.ch> writes:
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 2018
How did you install D / dub? As Joakim mentioned curl is a dependency of std.net.curl which is used by dub.
Aug 13 2018