如何升级gtk2hsC2hs? [英] How to upgrade gtk2hsC2hs?
问题描述
我正在使用cabal-install 0.10.2在我的Ubuntu 11.10下试用 cabal install glib-0.12.3
。但是,它显示以下错误消息:
setup:程序gtk2hsC2hs版本> = 0.13.5是必需的,但版本在/ usr / bin / gtk2hsC2hs中找到的
版本是0.13.4
cabal:错误:某些包未能安装:
glib-0.12.3在配置步骤中失败。例外情况是:
ExitFailure 1
经过半个小时的搜索,我找不到这里 gtk2hsC2hs
是。我挖入像 http://code.haskell.org/gtk2hs/tools/c2hs/ ,但似乎无法找到正确的版本。
我如何升级我的gtk2hsC2hs?谢谢!
gtk2hs-buildtools 包。$ cabal install gtk2hs-buildtools
(也许使用
- global
标志,取决于您想要如何安装一般的软件包)应该为您提供最新的版本,它应该能够构建最新的gtk2hs
软件包。
由于旧的
gtk2hsC2hs
位于/ usr / bin
中,所以请确保新的安装在那里(替换旧的)或在$ PATH
中出现在/ usr / bin
之前的目录中。默认cabal install
在$ HOME / .cabal / bin
中安装可执行文件(在Linux上),所以它会是好主意让$ PATH
中的第一个目录。I am trying
cabal install glib-0.12.3
under my Ubuntu 11.10 using cabal-install 0.10.2. However, it shows the following error messages:setup: The program gtk2hsC2hs version >=0.13.5 is required but the version found at /usr/bin/gtk2hsC2hs is version 0.13.4 cabal: Error: some packages failed to install: glib-0.12.3 failed during the configure step. The exception was: ExitFailure 1
After half an hour's search, I cannot find where this
gtk2hsC2hs
is. I dug into places like http://code.haskell.org/gtk2hs/tools/c2hs/, but could not seem to find the right version.How could I upgrade my gtk2hsC2hs? Thanks!
解决方案It's part of the gtk2hs-buildtools package.
$ cabal install gtk2hs-buildtools
(maybe with the
--global
flag, depends on how you want to install packages in general) should provide you with the newest version that should be able to build the latestgtk2hs
packages.Since the old
gtk2hsC2hs
is in/usr/bin
, make sure that the new one is either installed there (replacing the old) or in a directory appearing before/usr/bin
in your$PATH
. A defaultcabal install
installs executables (on Linux) in$HOME/.cabal/bin
, so it would be a good idea to have that the first directory in the$PATH
.这篇关于如何升级gtk2hsC2hs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!