dub is not able to install any package

Adil a at a.com
Mon Aug 13 13:02:43 UTC 2018


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 at adil-HP-ENVY-Notebook:~/workspace/screener-d$ whereis dub
dub: /snap/bin/dub
adil at adil-HP-ENVY-Notebook:~/workspace/screener-d$ dub --version
DUB version 1.9.0, built on May 31 2018



More information about the Digitalmars-d mailing list