我正在尝试将Web应用程序部署到OpenShift。我的应用程序是用Yesod web framework编写的。我想使用Haskell wiki中的Yesod墨盒。
我可以创建应用程序并部署随盒式磁带提供的示例。但是,当我向cabal文件添加更多依赖项时,推送后的构建失败。
失败依赖的一个例子是ReadArgs
。它失败并出现以下错误:
remote: ReadArgs.hs:11:8:
remote: Could not find module `Filesystem.Path'
remote: There are files missing in the `system-filepath-0.4.12' package,
remote: try running 'ghc-pkg check'.
remote: Use -v to see a list of the files searched for.
remote:
remote: ReadArgs.hs:12:8:
remote: Could not find module `Filesystem.Path.CurrentOS'
remote: There are files missing in the `system-filepath-0.4.12' package,
remote: try running 'ghc-pkg check'.
remote: Use -v to see a list of the files searched for.
ghc-pkg check
命令说明了system-filepath
:
There are problems in package system-filepath-0.4.12:
Warning: library-dirs: /var/lib/openshift/52a44a9e4382ecf07100007e/app-root/data/workspace/Haskell-Cloud/usr/lib/system-filepath-0.4.12/ghc-7.8.4 doesn't exist or isn't a directory
Warning: haddock-interfaces: /var/lib/openshift/52a44a9e4382ecf07100007e/app-root/data/workspace/Haskell-Cloud/usr/share/doc/system-filepath-0.4.12/html/system-filepath.haddock doesn't exist or isn't a file
Warning: haddock-html: /var/lib/openshift/52a44a9e4382ecf07100007e/app-root/data/workspace/Haskell-Cloud/usr/share/doc/system-filepath-0.4.12/html doesn't exist or isn't a directory
import-dirs: /var/lib/openshift/52a44a9e4382ecf07100007e/app-root/data/workspace/Haskell-Cloud/usr/lib/system-filepath-0.4.12/ghc-7.8.4 doesn't exist or isn't a directory
cannot find any of ["Filesystem/Path.hi","Filesystem/Path.p_hi","Filesystem/Path.dyn_hi"]
cannot find any of ["Filesystem/Path/CurrentOS.hi","Filesystem/Path/CurrentOS.p_hi","Filesystem/Path/CurrentOS.dyn_hi"]
cannot find any of ["Filesystem/Path/Rules.hi","Filesystem/Path/Rules.p_hi","Filesystem/Path/Rules.dyn_hi"]
cannot find any of ["Filesystem/Path/Internal.hi","Filesystem/Path/Internal.p_hi","Filesystem/Path/Internal.dyn_hi"]
cannot find any of ["libHSsystem-filepath-0.4.12.a","libHSsystem-filepath-0.4.12.p_a","libHSsystem-filepath-0.4.12-ghc7.8.4.so","libHSsystem-filepath-0.4.12-ghc7.8.4.dylib","HSsystem-filepath-0.4.12-ghc7.8.4.dll"] on library path
这些似乎是严重的问题,但它并没有告诉我如何解决它。
如何找出构建失败的原因?我怎样才能建立它?