[Haskell-beginners] fail: wxhaskell with cabal

Josh Bronson josh.bronson at gmail.com
Fri Nov 27 11:51:08 EST 2009


Hmm, there is no file of the type you mentioned:

$ ls /usr/lib/pkgconfig/wx*
ls: cannot access /usr/lib/pkgconfig/wx*: No such file or directory

A Google search for "wx pkg-config" appears to reveal that wxwidgets
does not support pkg-config, or at least it didn't a few years ago.
Lots of people will try "cabal install wx," right? So it seems like
that's probably not the problem, but I'm not sure where the code that
is generating the following output lives:

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

I tried untarring
~/.cabal/packages/hackage.haskell.org/wxcore/0.12.1.2/wxcore-0.12.1.2.tar.gz
and looking at Setup.hs to no avail. If I could see what test is
failing, I could probably figure it out.

On Thu, Nov 26, 2009 at 10:19 PM, Daniel Fischer
<daniel.is.fischer at web.de> wrote:
> Am Freitag 27 November 2009 05:06:21 schrieb Josh Bronson:
>> Greetings Haskellers,
>>
>> Happy Thanksgiving! I'm using Ubuntu 9.10. I've performed the following
>> steps:
>>
>> # apt-get install ghc6
>>
>> I then successfully did a local install of the Haskell platform in
>> ~/mine/install
>>
>> 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?
>
> Perhaps cabal configure uses pkg-config to detect those libraries and you have no
> wx_***.pc in /usr/lib/pkgconfig ?
> That occasionally happens to me.
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>


More information about the Beginners mailing list