0

目前,我已经按照Volker Schatz 在全球安装 cabal中的说明在全球范围内安装了 cabal 。在了解 cabal 依赖消息的帖子中,我在尝试安装 GOA 时遇到了依赖冲突,因此想尝试通过 cabal-dev(Rogan Creswick 的 cabal-dev)安装 GOA 以隔离安装(如果我理解的话正确 cabal 将来会包含沙盒功能,请参阅Johan Tibell 的 cabal 沙盒,但由于它仍在开发中,我想试试 cabal-dev)。

问题:鉴于 my~/.cabal是一个符号链接/usr/local/share/cabal(如 url 1中所做的那样),我将如何使用 cabal-dev 安装 GOA?理想情况下,安装仍将放置在 中/usr/local/share/cabal,但可能会放置在专门的目录中,例如/usr/local/share/cabal/cabal-dev

4

1 回答 1

1

As I understand it, the purpose of cabal-dev is to create an isolated environment just for compiling your project or a specific set of subprojects with compatible dependencies. The only thing you need to do is to run cabal-dev in the directory of your "cabalized" project, and it will locate the correct set of version for all your dependencies and compile and install them locally, in "cabal-dev" of your subdirectory. If you asked it to do that in a centralized location, like "/usr/local/...", then you would be defeating the whole purpose of cabal-dev. If you are still in doubt, please check virtualenv... cabal-dev works in a somewhat similar fashion.

于 2012-12-06T13:50:41.647 回答