在Windows下安装glib时,Cabal缺少对外部库的依赖性

问题描述

| 我需要glib才能使threadscope正常工作。但是我无法使用cabal安装它。我尝试
cabal install glib
,但收到以下错误。我什至尝试下载该库并在本地安装它,但收到相同的错误。 我在Windows上使用Cygwin。我运行Cygwin安装程序以确保我缺少库。我能够找到glib,gobject但找不到gthread。
    Gtk2HsSetup.hs:25:2:
         warning: #warning Setup.hs is guessing the version of Cabal. If compilation
     of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when buil
    ding (prefixed by --ghc-option= when using the \'cabal\' command)
    [1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs,dist\\setup\\Gtk2HsSetup.o )

    [2 of 2] Compiling Main             ( Setup.hs,dist\\setup\\Main.o )
    Linking .\\dist\\setup\\setup.exe ...
    Configuring glib-0.12.0...
    setup.exe: Missing dependencies on foreign libraries:
    * Missing C libraries: gobject-2.0,gthread-2.0,glib-2.0,intl,iconv
    This problem can usually be solved by installing the system packages that
    provide these libraries (you may need the \"-dev\" versions). If the libraries
    are already installed but in a non-standard location then you can use the
    flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
    cabal: Error: some packages failed to install:
    glib-0.12.0 failed during the configure step. The exception was:
    ExitFailure 1
    

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)