加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

haskell – ‘cabal copy’在cifs目录中的`stack build`期间失败

发布时间:2020-12-14 01:56:10 所属栏目:Linux 来源:网络整理
导读:我正在关注 these instructions.我成功地堆叠了新的堆栈设置,但是堆栈构建失败了. 我发现git issue可能是由于cabal文件中列出的额外文件,但删除它们并没有解决问题(我只是使用新模板而没有任何更改).我在Ubuntu 14.04上并使用脚本安装了堆栈.还有什么我可以
我正在关注 these instructions.我成功地堆叠了新的堆栈设置,但是堆栈构建失败了.

我发现git issue可能是由于cabal文件中列出的额外文件,但删除它们并没有解决问题(我只是使用新模板而没有任何更改).我在Ubuntu 14.04上并使用脚本安装了堆栈.还有什么我可以研究一下吗?

看来这可能是由于我试图在cifs目录中构建.我能做些什么来处理这件事吗?

# stack build
ehri-haskell-0.1.0.0: configure (lib + exe)
Configuring ehri-haskell-0.1.0.0...
ehri-haskell-0.1.0.0: build (lib + exe)
Preprocessing library ehri-haskell-0.1.0.0...
Preprocessing executable 'ehri-haskell-exe' for ehri-haskell-0.1.0.0...
ehri-haskell-0.1.0.0: copy/register
Installing library in
/mnt/docs/RubymineProjects/ehri-haskell/.stack-work/install/x86_64-linux/lts-8.6/8.0.2/lib/x86_64-linux-ghc-8.0.2/ehri-haskell-0.1.0.0-Kh3VLZPfbij7EgcL22QBMN
Installing executable(s) in
/mnt/docs/RubymineProjects/ehri-haskell/.stack-work/install/x86_64-linux/lts-8.6/8.0.2/bin
/mnt/docs/RubymineProjects/ehri-haskell/.stack-work/install/x86_64-linux/lts-8.6/8.0.2/bin/.copyFile5965166491189641421.tmp:
copyFile: does not exist (Host is down)
'cabal copy' failed.  Error message:

--  While building package ehri-haskell-0.1.0.0 using:
      /root/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.2.0 copy
    Process exited with code: ExitFailure 1

One possible cause of this issue is:
* No module named "Main". The 'main-is' source file should usually have a header indicating that it's a 'Main' module.

# stack --version
Version 1.4.0,Git revision e714f1dd3fade19496d91bd6a017e435a96a6bcd (4640 commits) x86_64 hpack-0.17.0

解决方法

看起来问题是由项目所在文件夹的深度引起的(Windows 10,x64).从深度超过某个阈值的那一刻起,出现所描述的错误.因此,尝试在目录树中移动项目文件夹.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读