我正在嘗試在 Windows 10 上設定 Facebook Duckling 。
當我執行時:stack exec duckling-example-exe它會產生以下錯誤:
duckling-example-exe.EXE: /etc/zoneinfo/: getDirectoryContents:findFirstFile: does not exist (The system cannot find the path specified.)
我不明白為什么會收到此錯誤,因為我遵循了此 GitHub 執行緒上的建議,該建議建議用指向包含檔案的檔案夾的鏈接替換"/usr/share/zoneinfo/"??in 。您可以看到我按照以下螢屏截圖中的建議替換了路徑:Duckling/exe/ExampleMain.hszoneinfo

我還嘗試添加一個雙斜杠,如下所示 - 但它沒有幫助:

我嘗試使用正斜杠,但這也無濟于事:

此外,我不明白 path:/etc/zoneinfo/來自哪里,如果路徑不再存在ExampleMain.hs?編譯器從哪里拉路徑?
謝謝!
uj5u.com熱心網友回復:
您需要在您嘗試修改的小鴨源代碼和檔案stack exec duckling-example-exe所在的目錄中運行。否則它將使用堆疊中的小鴨版本,而無需您進行更改。stack.yamlproject.yaml
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/432486.html
標籤:视窗 Facebook 哈斯克尔 命令 haskell 堆栈
