我克隆了reactive-banana并尝试构建reactive-banana-wx示例:
git clone http://github.com/HeinrichApfelmus/reactive-banana.git
cd reactive-banana/reactive-banana-wx
stack build该目录中有一个stack.yaml,它确实获取了几个包,但由于以下错误而停止:
Progress: 16/20
-- While building package wxc-0.92.2.0 using:
[snip]
Process exited with code: ExitFailure 1
Logs have been written to: /home/kostmo/github/reactive-banana/reactive-banana-wx/.stack-work/logs/wxc-0.92.2.0.log
[1 of 1] Compiling Main ( /tmp/stack5908/wxc-0.92.2.0/Setup.hs, /tmp/stack5908/wxc-0.92.2.0/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup/Main.o )
Linking /tmp/stack5908/wxc-0.92.2.0/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup/setup ...
Error: wx-config not found, please install wx-config before installing wxc在运行stack build之前,是否还有其他必须执行的步骤
This user似乎有一个相关的问题。
发布于 2016-04-02 16:52:58
错误消息显示
Error: wx-config not found, please install wx-config before installing wxc此错误表示您运行的程序无法找到wxWidgets安装中包含的wx-config实用程序。一个可能的原因是您没有安装用C++编写的wxWidgets库。
发布于 2016-04-03 14:09:24
@Heinrich的回答让我走上了正确的道路。
我按照here的指示做了一些细微的改动。
在我的Ubuntu 15.10机器上,我执行了以下命令:
sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
# This seems to work even though my release's codename is "wily":
sudo apt-add-repository 'deb http://repos.codelite.org/wx3.0.2/ubuntu/ utopic universe'
sudo apt-get update
sudo apt-get install g++ libglu-dev libwxgtk3.0-dev libwxbase3.0-0-unofficial libwxbase3.0-dev libwxgtk3.0-0-unofficial wx3.0-headers wx-common libwxgtk-media3.0-dev libwxgtk-webview3.0-dev我不确定这些包是否都是必需的,但在安装它们之后,我能够执行
stack build在reactive-banana/reactive-banana-wx目录中成功完成。
我不能立即运行这些示例;我首先在flag buildExamples下的reactive-banana-wx.cabal中将行从
default: False至
default: True重新运行stack build,然后编译示例,可以按如下方式运行:
stack exec Counterhttps://stackoverflow.com/questions/36370292
复制相似问题