Haskell stack ';缺少目标文件操作数';尝试时出错';stack exec安装…';
我正在尝试使用Haskell stack ';缺少目标文件操作数';尝试时出错';stack exec安装…';,haskell-stack,Haskell Stack,我正在尝试使用stack exec install servant auth server安装Hackage的servant auth server软件包,该软件包在其他软件包中对我有效 但是,使用servant auth server我得到一个错误 $ stack exec install servant-auth-server /run/current-system/sw/bin/install: missing destination file operand after 'servant
stack exec install servant auth server
安装Hackage的servant auth server
软件包,该软件包在其他软件包中对我有效
但是,使用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.
此错误的原因是什么?
如何安装仆人身份验证服务器
?
编辑 运行命令
$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.
该命令可能应该是
stack install servant auth server
运行该命令时出现“生成计划异常”错误(问题已被编辑以显示该错误)。问题是快照未指定servant auth的版本。您是否尝试过“推荐操作”?这应该能解决问题,这就是它存在的目的。另一种方法是只执行堆栈安装服务身份验证服务器服务身份验证
,将选择两者的最新版本。