cabal 的当前文档显示了一个sandbox子命令。
github 上的相应页面不再包含沙箱部分。
我使用的是 cabal 版本 3.2.0.0,但sandbox子命令不存在。使用 cabal 管理沙箱的正确方法是什么?
显然,文档正在进行彻底修改,其中提到了Nix 风格/new-/v2 命令,但菜鸟不清楚使用 cabal 沙箱的规范方式是什么。
我试图在Ubuntu 11.04上从零开始设置Haskell,而不使用过时的Debian存储库或Haskell-Platform.
我GHC-7.0.4从源代码安装没有问题,现在需要安装Cabal(它似乎已经包含在GHC的/usr/local/lib/ghc-7.0.4/Cabal-1.10.2.0中)和Cabal Install.
后者指定了几个依赖(parsec和network),其每一个都有自己的(几个依赖关系mtl,text等).
安装这些软件包的命令是什么,我是用tar.gz格式从hackage下载的?
解包,然后runhaskell不起作用.
我看到了Setup.lhs,但目前尚不清楚它是什么或如何使用它.
我发现的大多数Haskell文档假设您已经从repo或Haskell-Package安装,并没有真正解释这一点.
在进行darcsden代码的cabal安装后,我收到以下消息:
cabal:重新安装可能会破坏以下软件包:bin-package-db-0.0.0.0 ghc-7.4.1如果要安装,请使用--force-reinstalls.
我该如何解决这个问题?这是什么意思?
我正在使用OS X 10.8.2和Haskell Platform 2012.4.0.0.使用时更新包时cabal install,二进制符号链接不会更新以指向新的二进制版本.我必须手动删除符号链接并重新安装包.cabal install说:
警告:无法在/ Users/thsoft/Library/Haskell/bin中为elm创建符号链接,因为该文件已存在但不受cabal管理.如果您愿意,可以手动为此可执行文件创建符号链接.可执行文件已安装在/Users/thsoft/Library/Haskell/ghc-7.4.1/lib/Elm-0.7/bin/elm
我尝试使用sudo并--symlink-bindir=/Users/thsoft/Library/Haskell/bin明确指定,但没有一个帮助.我怎么能解决这个问题?
yesod-platform的cabal安装挂起下载xss-sanitize.NetHogs没有显示与此下载相关的网络活动.
$ cabal install yesod-platform
Resolving dependencies...
Downloading xss-sanitize-0.3.4...
Run Code Online (Sandbox Code Playgroud)
其他软件包立即下载并安装.
我在Fedora 18上.haskell平台和cabal-install是最新的回购.
$ cabal --version
cabal-install version 0.14.0
using version 1.14.0 of the Cabal library
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.4.1
Run Code Online (Sandbox Code Playgroud)
我让它一夜之间运行它似乎放弃了xss-sanitizer,并继续安装其他依赖项.这是尾巴.
...
Configuring yesod-test-1.2.1...
Building yesod-test-1.2.1...
Preprocessing library yesod-test-1.2.1...
[1 of 3] Compiling Yesod.Test.CssQuery ( Yesod/Test/CssQuery.hs, dist/build/Yesod/Test/CssQuery.o )
[2 of 3] Compiling Yesod.Test.TransversingCSS ( Yesod/Test/TransversingCSS.hs, dist/build/Yesod/Test/TransversingCSS.o )
[3 of 3] Compiling Yesod.Test ( Yesod/Test.hs, dist/build/Yesod/Test.o )
Yesod/Test.hs:113:1:
Warning: In the use of `runFakeHandler' …Run Code Online (Sandbox Code Playgroud) 我怀疑这是一个问题ghc或cabal-install:
我曾经以这种格式获取构建信息:
Resolving dependencies...
Configuring ltk-0.8.0.6...
Building ltk-0.8.0.6...
Preprocessing library ltk-0.8.0.6...
[ 1 of 12] Compiling Graphics.UI.Frame.Panes ( src/Graphics/UI/Frame/Panes.hs, dist/build/Graphics/UI/Frame/Panes.o )
[ 2 of 12] Compiling Graphics.UI.Editor.Parameters ( src/Graphics/UI/Editor/Parameters.hs, dist/build/Graphics/UI/Editor/Parameters.o )
[ 3 of 12] Compiling Control.Event ( src/Control/Event.hs, dist/build/Control/Event.o )
[ 4 of 12] Compiling MyMissing ( src/MyMissing.hs, dist/build/MyMissing.o )
[ 5 of 12] Compiling Graphics.UI.Editor.Basics ( src/Graphics/UI/Editor/Basics.hs, dist/build/Graphics/UI/Editor/Basics.o )
[ 6 of 12] Compiling Graphics.UI.Editor.MakeEditor ( src/Graphics/UI/Editor/MakeEditor.hs, dist/build/Graphics/UI/Editor/MakeEditor.o )
[ 7 of 12] Compiling …Run Code Online (Sandbox Code Playgroud) 我的Linux(redhat6)服务器必须使用http代理连接到外部世界.虽然它适用于像wget这样的其他东西,但它不适用于阴谋集团.
cabal update -v3
Run Code Online (Sandbox Code Playgroud)
显示如下错误:
407 - 需要代理身份验证cabal:无法下载 http://hackage.haskell.org/packages/archive/00-index.tar.gz:ErrorMisc "不成功的HTTP代码:407"
我试图将http_proxy环境变量更改为类似http:// user:passwd at proxy:port的格式,但它也不起作用.
但我不允许使用像polipo这样的代理服务器,有没有其他方法可以让代理服务器背后工作?
我正在尝试安装helm.当我尝试安装它时,我收到此错误:
$ cabal install helm
Resolving dependencies...
Configuring sdl2-1.1.0...
cabal: The pkg-config package 'sdl2' version >=2.0.3 is required but it could
not be found.
Failed to install sdl2-1.1.0
cabal: Error: some packages failed to install:
helm-0.6.1 depends on sdl2-1.1.0 which failed to install.
sdl2-1.1.0 failed during the configure step. The exception was:
ExitFailure 1
Run Code Online (Sandbox Code Playgroud)
当我自己安装sdl2时,我收到了类似的消息.
$ cabal install sdl2
Resolving dependencies...
Configuring sdl2-1.1.0...
cabal: The pkg-config package 'sdl2' version >=2.0.3 is required but it could
not be found. …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用性能分析选项编译我的一个可执行文件.我-prof在cabal文件中添加了选项.当我这样做时,我收到一条消息说
Could not find module ‘Package-X’
Perhaps you haven't installed the profiling libraries for package ‘package-x’?
Use -v to see a list of the files searched for.
Run Code Online (Sandbox Code Playgroud)
我怎么做?我试过cabal install --only-dependency --reinstall,我收到以下回复:
All the requested packages are already installed:
Use --reinstall if you want to reinstall anyway.
Run Code Online (Sandbox Code Playgroud)
我已经用过 --reinstall我该怎么办了?我也试过cabal configure --enable-profiling-libraries......
我有一台根本没有互联网接入的机器.
我使用我从其他机器通过pendrive获得的安装程序在其上安装了Haskell平台.
现在我想repa在没有互联网访问权限的家用机器上安装软件包.我该怎么办?
我的家用机器运行Linux(Debian),我的办公室机器是Windows 7.