2014-06-08 158 views
2

我安裝失敗的陰謀:無法安裝WX

$ cabal install wx 
Resolving dependencies... 
[1 of 1] Compiling Main    (/tmp/wxc-0.90.1.1-30692/wxc-0.90.1.1/Setup.hs, /tmp/wxc-0.90.1.1-30692/wxc-0.90.1.1/dist/setup/Main.o) 
Linking /tmp/wxc-0.90.1.1-30692/wxc-0.90.1.1/dist/setup/setup ... 
Configuring wxc-0.90.1.1... 

    Warning: No config found to match: /usr/bin/wx-config --version=2.9 --version-full 
      in /usr/lib/x86_64-linux-gnu/wx/config 
    If you require this configuration, please install the desired 
    library build. If this is part of an automated configuration 
    test and no other errors occur, you may safely ignore it. 
    You may use wx-config --list to see all configs available in 
    the default prefix. 

readProcess failed: readProcess: wx-config "--version=2.9" "--version-full" (exit 1): failed 
setup: failed 
Failed to install wxc-0.90.1.1 
cabal: Error: some packages failed to install: 
wx-0.90.1.0 depends on wxc-0.90.1.1 which failed to install. 
wxc-0.90.1.1 failed during the configure step. The exception was: 
ExitFailure 1 
wxcore-0.90.1.1 depends on wxc-0.90.1.1 which failed to install 

這個我做之前,他們沒有錯誤安裝:

apt-get install libwxgtk2.8-dev 
apt-get install libglu-dev 
apt-get install g++ 

我也跑$ cabal update

我該如何解決這個問題?

+0

如果你沒有看過這個已經,這可以幫助你:http://codelite.org/LiteEditor/WxWidgets30Binaries#toc2 – Sibi

+0

@Sibi,我添加命令和apt-插件庫'deb http://repos.codelite.org/wx3.0/ubuntu/ trusty universe',並做了apt-get更新,但在所有這些之後仍然存在相同的錯誤。 –

回答

2

在安裝wxc 0.92時,我在Linux中遇到了同樣的問題,並設法通過手動修復wxWidgets 3.02安裝中的一些問題來解決此問題。

具體來說,wxHaskell的安裝文件調用wx-config。在你的終端或shell中試試這個:wx-config --release應該報告3,而wx-config --version=3.0應該完全沒有任何消息。在/bin/文件夾中,應該有一個wx-config文件。這是一個腳本文件;編輯它。你會看到它指向/usr/lib64/wx/config/gtk2-unicode-release-2.9或類似的東西。將其更改爲指向版本3.0文件:它可以位於/usr/local/lib/wx/config/文件夾中。如果找不到該文件,請嘗試從源文件安裝wxWidgets,而不是從二進制文件包安裝。