2017-07-26 70 views
0

我試圖安裝Hackage的servant-auth-server程序包,使用stack exec install servant-auth-server,它已在其他軟件包中爲我工作。嘗試'堆棧exec執行安裝...'時出現'丟失目標文件操作數'錯誤

但是,使用servant-auth-server時出現錯誤。

$ stack exec install servant-auth-server 
/run/current-system/sw/bin/install: missing destination file operand after 'servant-auth-server' 
Try '/run/current-system/sw/bin/install --help' for more information. 

這個錯誤的原因是什麼?

如何安裝servant-auth-server


EDIT

運行命令$ stack install servant-auth-server如下所示也不起作用。

$ stack install servant-auth-server 

Error: While constructing the build plan, the following exceptions were encountered: 

In the dependencies for servant-auth-server-0.3.0.0: 
    servant-auth must match ==0.2.*, but the stack configuration has no specified version (latest applicable is 0.2.7.0) 

Recommended action: try adding the following to your extra-deps in /home/matthew/.stack/global-project/stack.yaml: 
- servant-auth-0.2.7.0 

You may also want to try the 'stack solver' command 
Plan construction failed. 

回答

0

該命令可能應該是stack install servant-auth-server

+0

運行該命令,我收到了「打造計劃例外」的錯誤(問題已被編輯以顯示)。 – mherzl

+0

問題是快照未指定服務器身份驗證的版本。你嘗試過「推薦行動」嗎?這應該解決它,那就是它的存在。另一種方法是隻執行'stack install servant-auth-server servant-auth',將選擇兩者的最新版本。 – mgsloan

相關問題