[Haskell-beginners] fail: wxhaskell with cabal

Josh Bronson josh.bronson at gmail.com
Fri Nov 27 11:41:14 EST 2009


Yes, I've installed libwxbase2.8-dev:

$ dpkg -l 'libwxbase2.8*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libwxbase2.8-0 2.8.10.1-0ubun wxBase library (runtime) - non-GUI support c
ii  libwxbase2.8-d 2.8.10.1-0ubun wxBase library (development) - non-GUI suppo
$ dpkg -L libwxbase2.8-dev
/.
/usr
/usr/lib
/usr/lib/wx
/usr/lib/wx/include
/usr/lib/wx/include/base-unicode-release-2.8
/usr/lib/wx/include/base-unicode-release-2.8/wx
/usr/lib/wx/include/base-unicode-release-2.8/wx/setup.h
/usr/lib/wx/config
/usr/lib/wx/config/base-unicode-release-2.8
/usr/share
/usr/share/doc
/usr/share/doc/libwxbase2.8-dev
/usr/share/doc/libwxbase2.8-dev/changelog.gz
/usr/share/doc/libwxbase2.8-dev/copyright
/usr/share/doc/libwxbase2.8-dev/changelog.Debian.gz
/usr/lib/libwx_baseu-2.8.so
/usr/lib/libwx_baseu_net-2.8.so
/usr/lib/libwx_baseu_xml-2.8.so

On Fri, Nov 27, 2009 at 12:34 AM, Chaddaï Fouché
<chaddai.fouche at gmail.com> wrote:
> On Fri, Nov 27, 2009 at 5:06 AM, Josh Bronson <josh.bronson at gmail.com> wrote:
>> Now I am trying to get wxhaskell to install:
>>
>> $ cabal install wx
>> [snip]
>> Configuring wxcore-0.12.1.2...
>> setup: Missing dependencies on foreign libraries:
>> * Missing C libraries: wx_baseu-2.8, wx_baseu_net-2.8, wx_baseu_xml-2.8
>> 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:
>> wx-0.12.1.2 depends on wxcore-0.12.1.2 which failed to install.
>> wxcore-0.12.1.2 failed during the configure step. The exception was:
>> exit: ExitFailure 1
>>
>> $ ls /usr/lib/libwx*
>> /usr/lib/libwx_baseu-2.8.so        /usr/lib/libwx_baseu_net-2.8.so.0.6.0
>> /usr/lib/libwx_baseu-2.8.so.0      /usr/lib/libwx_baseu_xml-2.8.so
>> /usr/lib/libwx_baseu-2.8.so.0.6.0  /usr/lib/libwx_baseu_xml-2.8.so.0
>> /usr/lib/libwx_baseu_net-2.8.so    /usr/lib/libwx_baseu_xml-2.8.so.0.6.0
>> /usr/lib/libwx_baseu_net-2.8.so.0
>>
>> It looks like the libraries are there to me! any ideas?
>
> The shared libraries are there, but did you check if the miscellaneous
> headers were there ? In other word did you install the libwx*-dev
> packages as invited to do by cabal in its error message ?
>
> --
> Jedaï
>


More information about the Beginners mailing list