<div dir="ltr"><div>I believe I have wxWidgets installed, because when I go to the demos/ or samples/ subfolders of ~/wxWidgets-3.0.2/build-cocoa-debug/, I can run the apps. Now I want to install the phooey library for Haskell. When I try, I am warned that some things will be broken, so I unregister them and then cabal install them all at once. (The complete output from my session with cabal appears below.)</div><div><br></div><div>I run cabal from ~/wxWidgets, because that folder contains the files</div><div><span class="" style="white-space:pre">    </span><a href="http://wx-config-inplace.in">wx-config-inplace.in</a><span class="" style="white-space:pre">      </span></div><div><span class="" style="white-space:pre">   </span><a href="http://wx-config.in">wx-config.in</a></div><div>and I know cabal wants wx-config.</div><div><br></div><div>The two errors I get: </div><div><span class="" style="white-space:pre">        </span>wx-config is not found </div><div><span class="" style="white-space:pre">   </span>checkers does not install</div><div><br></div><div>I am left stumped. Thanks for your help. </div><div><br></div><div>--------------------</div><div><br></div><div>jefferys-mbp:~ jbb$ cd wxWidgets-3.0.2/</div><div>jefferys-mbp:wxWidgets-3.0.2 jbb$ cabal install phooey</div><div>Resolving dependencies...</div><div>In order, the following would be installed:</div><div>mtl-1.1.1.1 (latest: 2.2.1) (new version)</div><div>parsec-3.1.7 (reinstall) changes: mtl-2.2.1 -> 1.1.1.1</div><div>reactive-0.5.0.1 (latest: 0.11.5) (new package)</div><div>wxdirect-0.91.0.0 (reinstall)</div><div>wxc-0.91.0.0 (new package)</div><div>wxcore-0.91.0.0 (new package)</div><div>wx-0.91.0.0 (new package)</div><div>phooey-2.0.0.1 (new package)</div><div>cabal: The following packages are likely to be broken by the reinstalls:</div><div>tidal-0.4.21</div><div>network-uri-2.6.0.1</div><div>threepenny-gui-0.5.0.0</div><div>hmt-0.15</div><div>Use --force-reinstalls if you want to install anyway.</div><div>jefferys-mbp:wxWidgets-3.0.2 jbb$ ghc-pkg unregister tidal</div><div>jefferys-mbp:wxWidgets-3.0.2 jbb$ ghc-pkg unregister threepenny-gui</div><div>jefferys-mbp:wxWidgets-3.0.2 jbb$ ghc-pkg unregister network-uri</div><div>jefferys-mbp:wxWidgets-3.0.2 jbb$ ghc-pkg unregister hmt</div><div>jefferys-mbp:wxWidgets-3.0.2 jbb$ cabal install tidal network-uri threepenny-gui hmt phooey</div><div>Resolving dependencies...</div><div>Configuring checkers-0.1.4...</div><div>Configuring network-uri-2.6.0.1...</div><div>Configuring hmt-0.15...</div><div>Configuring wxc-0.91.0.0...</div><div>Building network-uri-2.6.0.1...</div><div>Building checkers-0.1.4...</div><div>Building hmt-0.15...</div><div>Failed to install checkers-0.1.4</div><div>Last 10 lines of the build log ( /Users/jbb/.cabal/logs/checkers-0.1.4.log ):</div><div>      at src/Test/QuickCheck/Instances/Num.hs:23:12-49</div><div>    Possible fix:</div><div>      add (Eq a) to the context of</div><div>        the type signature for</div><div>          nonZero :: (Num a, Arbitrary a) => Gen a -> Gen a</div><div>    In the first argument of ‘satisfiesM’, namely ‘(/= 0)’</div><div>    In the expression:</div><div>      satisfiesM (/= 0) (if (s == 0) then (resize 1 g) else g)</div><div>    In the first argument of ‘sized’, namely</div><div>      ‘(\ s -> satisfiesM (/= 0) (if (s == 0) then (resize 1 g) else g))’</div><div>Failed to install wxc-0.91.0.0</div><div>Last 10 lines of the build log ( /Users/jbb/.cabal/logs/wxc-0.91.0.0.log ):</div><div>[1 of 1] Compiling Main             ( /var/folders/q1/2_cf13z53tg__sqdk7v8ycgm0000gn/T/wxc-0.91.0.0-41510/wxc-0.91.0.0/Setup.hs, /var/folders/q1/2_cf13z53tg__sqdk7v8ycgm0000gn/T/wxc-0.91.0.0-41510/wxc-0.91.0.0/dist/setup/Main.o )</div><div>Linking /var/folders/q1/2_cf13z53tg__sqdk7v8ycgm0000gn/T/wxc-0.91.0.0-41510/wxc-0.91.0.0/dist/setup/setup ...</div><div>Error: wx-config not found, please install wx-config before installing wxc</div><div>Installed network-uri-2.6.0.1</div><div>Configuring threepenny-gui-0.5.0.0...</div><div>Building threepenny-gui-0.5.0.0...</div><div>Installed threepenny-gui-0.5.0.0</div><div>Installed hmt-0.15</div><div>Configuring tidal-0.4.21...</div><div>Building tidal-0.4.21...</div><div>Installed tidal-0.4.21</div><div>Updating documentation index /Users/jbb/Library/Haskell/share/doc/index.html</div><div>cabal: Error: some packages failed to install:</div><div>checkers-0.1.4 failed during the building phase. The exception was:</div><div>ExitFailure 1</div><div>phooey-2.0 depends on wxc-0.91.0.0 which failed to install.</div><div>reactive-0.9.3 depends on checkers-0.1.4 which failed to install.</div><div>wx-0.91.0.0 depends on wxc-0.91.0.0 which failed to install.</div><div>wxc-0.91.0.0 failed during the configure step. The exception was:</div><div>ExitFailure 1</div><div>wxcore-0.91.0.0 depends on wxc-0.91.0.0 which failed to install.</div></div>