2017-07-26 103 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

相关问题