如何升级gtk2hsC2hs?(How to upgrade gtk2hsC2hs?)

2019-07-29 01:19发布

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!

Answer 1:

这是一部分gtk2hs-编译工具包。

$ cabal install gtk2hs-buildtools

(也许用--global标志,取决于你想如何在一般的安装包)应该会提供您应该能够建立最新的最新版本gtk2hs包。

由于老gtk2hsC2hs/usr/bin ,请确保新要么安装有(取代旧的),或在出现之前的目录/usr/bin在你的$PATH 。 默认的cabal install安装的可执行文件(在Linux上)在$HOME/.cabal/bin ,所以这将是一个好主意,在第一个目录$PATH



文章来源: How to upgrade gtk2hsC2hs?