使用依赖项时无法在mac系统上运行D程序
我对D语言相当陌生。我正在处理其他人开发的现有代码。以前的开发人员使用linux环境构建和运行D应用程序。 我正试图在MAC中做同样的事情,因为它是我的本地环境 下面是我的jub.json文件的样子使用依赖项时无法在mac系统上运行D程序,d,dmd,D,Dmd,我对D语言相当陌生。我正在处理其他人开发的现有代码。以前的开发人员使用linux环境构建和运行D应用程序。 我正试图在MAC中做同样的事情,因为它是我的本地环境 下面是我的jub.json文件的样子 { "name" : "dsmasher", "description" : "Hello World - A minimal DUB bundle.", "dependencies" : { "d2sqlite3": "~>0.9.7",
{
"name" : "dsmasher",
"description" : "Hello World - A minimal DUB bundle.",
"dependencies" : {
"d2sqlite3": "~>0.9.7",
"botan": "~>1.12.9"
}
}
程序非常简单
import std.stdio;
int main () {
return 0;
}
但当我构建它时,会抛出以下错误
/Library/D/dmd/src/druntime/import/object.d(3440,23): Error: template memutils.refcounted.RefCounted!(X509CertificateImpl, ThreadMem).RefCounted.opCast does not match any template declaration
/Library/D/dmd/src/druntime/import/object.d(3440,49): Error: template memutils.refcounted.RefCounted!(X509CertificateImpl, ThreadMem).RefCounted.opCast does not match any template declaration
/Library/D/dmd/src/druntime/import/object.d(3441,39): Error: template memutils.refcounted.RefCounted!(X509CertificateImpl, ThreadMem).RefCounted.opCast does not match any template declaration
../../../.dub/packages/memutils-0.4.9/memutils/source/memutils/vector.d(790,10): Error: template instance object.__equals!(const(RefCounted!(X509CertificateImpl, ThreadMem)), const(RefCounted!(X509CertificateImpl, ThreadMem))) error instantiating
../../../.dub/packages/memutils-0.4.9/memutils/source/memutils/helpers.d(71,27): instantiated from here: opEquals!()
../../../.dub/packages/botan-1.12.9/botan/source/botan/tls/server.d(689,38): instantiated from here: opEquals!(RefCounted!(Vector!(RefCounted!(X509CertificateImpl, ThreadMem), ThreadMem), ThreadMem))
/Library/D/dmd/bin/dmd failed with exit code 1.
^^^ Terminated, exit code: 2 ^^^
************ Build terminated. ************
我正在为此使用dmd编译器。
如果您有任何想法,请帮助。这似乎是植物学中的一个错误。根据Travis CI的说法,他们的构建失败了。因此要构建Hello World示例,请删除“d2sqlite3”:“~>0.9.7”和“botan”:“~>1.12.9”依赖项。Hello World不需要它们:)