3
我正在嘗試將Web應用程序部署到OpenShift。我的應用程序是用Yesod web framework寫的。我想使用Haskell wiki的Yesod墨盒。在部署到OpenShift時,ReadArgs上的Cabal構建失敗
我可以創建應用程序並部署墨盒附帶的示例。但是,當我向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
這些看似嚴重的問題,但它並沒有告訴我如何解決它。
我怎樣才能找出構建失敗的原因?我怎樣才能建立它?