如何注册使用cabal-dev构建的软件包? [英] How can one register a package built with cabal-dev?
问题描述
我能够使用 cabal-dev
来构建一些 cabal
遇到问题的软件包。 (帮助cabal安装包shadowing错误)。那么如何安装和使用它们?我尝试将包数据库文件复制到〜/ .ghc / x86_64-linux-7.0.4 / package.conf.d
文件夹中,并运行 ghc-pkg recache --user
,但没有运气。 (尽管它们现在显示在 ghc-pkg
中)。
I was able to use cabal-dev
to build some packages that cabal
was having issues with. ( help with cabal install package shadowing errors ). How does one then install and use them? I tried copying the package database files into the ~/.ghc/x86_64-linux-7.0.4/package.conf.d
folder, and running ghc-pkg recache --user
, but no luck. (They do show up in ghc-pkg
now though).
推荐答案
这似乎工作,虽然它更糟糕,我必须放在我的zshrc中......
This seems to work, though it's more crap I have to put in my zshrc...
export GHC_PACKAGE_PATH=$HOME/cabal-dev/packages-7.0.4.conf:$HOME/.ghc/x86_64-linux-7.0.4/package.conf.d:/usr/local/lib/ghc-7.0.4/package.conf.d
希望它有助于某人。 (当然你必须适当地调整路径;旧的可以通过运行 ghc-pkg list
)找到。
hope it helps someone. (of course you'll have to adjust paths appropriately; the old ones can be found by running ghc-pkg list
).
这篇关于如何注册使用cabal-dev构建的软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!