
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?

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.

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
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@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Am Freitag 27 November 2009 17:51:08 schrieb Josh Bronson:
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?
Dunno, I just tried, for me it dies with: <snip more warnings> src/cpp/eljdirdlg.cpp:24:0: warning: ‘void wxDirDialogBase::SetStyle(long int)’ is deprecated (declared at /usr/include/wx-2.8/wx/dirdlg.h:79) src/cpp/eljdirdlg.cpp: In function ‘int wxDirDialog_GetStyle(void*)’: src/cpp/eljdirdlg.cpp:45:0: warning: ‘long int wxDirDialogBase::GetStyle() const’ is deprecated (declared at /usr/include/wx-2.8/wx/dirdlg.h:78) src/cpp/eljevent.cpp: In function ‘int expEVT_DIALUP_CONNECTED()’: src/cpp/eljevent.cpp:1589:0: error: ‘wxEVT_DIALUP_CONNECTED’ was not declared in this scope src/cpp/eljevent.cpp: In function ‘int expEVT_DIALUP_DISCONNECTED()’: src/cpp/eljevent.cpp:1598:0: error: ‘wxEVT_DIALUP_DISCONNECTED’ was not declared in this scope 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 building phase. The exception was: exit: ExitFailure 1 Which reminds me, I've *never* succeeded building wxhaskell, I wonder how many managed.
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.g z and looking at Setup.hs to no avail. If I could see what test is failing, I could probably figure it out.
Specify the locations via --extra-include-dirs and --extra-lib-dirs?

Ah. Is there a better GUI library to work with? Is cabal along with
the Haskell Platform a good idea? Or is it better to just stick with
libraries that install natively using APT on Ubuntu? I'm just trying
to write a little GUI application (John Conway's Game of Life) to
learn Haskell.
Thanks,
Josh
On Fri, Nov 27, 2009 at 1:07 PM, Daniel Fischer
Which reminds me, I've *never* succeeded building wxhaskell, I wonder how many managed.

Am Freitag 27 November 2009 22:22:03 schrieb Josh Bronson:
Ah. Is there a better GUI library to work with?
I don't know which one is 'better' for what purposes, but gtk2hs is much used. It is unfortunately, as far as I know, not cabalised, so you'd have to manually install it.
Is cabal along with the Haskell Platform a good idea? Or is it better to just stick with libraries that install natively using APT on Ubuntu? I'm just trying
Don't know if it's still true, but the debian packages used to lag far behind hackage, so that used to not be a serious option. If nowadays the debian-haskell packagers are up to speed, apt-get has advantages over cabal install.
to write a little GUI application (John Conway's Game of Life) to learn Haskell.
Thanks, Josh
On Fri, Nov 27, 2009 at 1:07 PM, Daniel Fischer
wrote: Which reminds me, I've *never* succeeded building wxhaskell, I wonder how many managed.
This is now no longer true. I read the header "dialup.h" and replaced the "undeclared" macros wxEVT_DIALUP_(DIS)CONNECTED with the appropriate values in eljevent.cpp, then wxcore built and afterwards also wx. I haven't tested it, so it may be broken, but if it is, that shouldn't be the cause, I think.

I think the Ubuntu 9.10 packages are up-to-date, so I'll try using
gtk2hs with the Ubuntu packages next time I have some free time.
Thanks for the help!
Josh
On Fri, Nov 27, 2009 at 4:18 PM, Daniel Fischer
Am Freitag 27 November 2009 22:22:03 schrieb Josh Bronson:
Ah. Is there a better GUI library to work with?
I don't know which one is 'better' for what purposes, but gtk2hs is much used. It is unfortunately, as far as I know, not cabalised, so you'd have to manually install it.
Is cabal along with the Haskell Platform a good idea? Or is it better to just stick with libraries that install natively using APT on Ubuntu? I'm just trying
Don't know if it's still true, but the debian packages used to lag far behind hackage, so that used to not be a serious option. If nowadays the debian-haskell packagers are up to speed, apt-get has advantages over cabal install.
to write a little GUI application (John Conway's Game of Life) to learn Haskell.
Thanks, Josh
On Fri, Nov 27, 2009 at 1:07 PM, Daniel Fischer
wrote: Which reminds me, I've *never* succeeded building wxhaskell, I wonder how many managed.
This is now no longer true. I read the header "dialup.h" and replaced the "undeclared" macros wxEVT_DIALUP_(DIS)CONNECTED with the appropriate values in eljevent.cpp, then wxcore built and afterwards also wx. I haven't tested it, so it may be broken, but if it is, that shouldn't be the cause, I think.

On Fri, Nov 27, 2009 at 5:06 AM, Josh Bronson
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ï

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é
On Fri, Nov 27, 2009 at 5:06 AM, Josh Bronson
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ï
participants (3)
-
Chaddaï Fouché
-
Daniel Fischer
-
Josh Bronson