Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cabal install wx Missing C library

Env:

  • OS: feodra 16
  • haskell-platform
  • wxGTK-devel
  • ghc 7.0.4

I am trying to install wxHaskell with

cabal install wx

Then these errors are given.

Missing dependencies on foreign libraries: * Missing C libraries: wx_baseu-2.8, wx_baseu_net-2.8, wx_baseu_xml-2.8, wx_gtk2u_core-2.8, wx_gtk2u_adv-2.8, wx_gtk2u_html-2.8, wx_gtk2u_qa-2.8, wx_gtk2u_xrc-2.8, wx_gtk2u_aui-2.8, wx_gtk2u_richtext-2.8, wx_gtk2u_media-2.8, wx_gtk2u_stc-2.8, wx_gtk2u_gl-2.8

And these libraries actually exist in /usr/lib I type following in terminal

ls libwx*.so

and found libs:

  • libwx_baseu-2.8.so
  • libwx_gtk2u_aui-2.8.so
  • libwx_gtk2u_gl-2.8.so
  • ......

I tried cabal install wx --exteral-lib-dirs=/usr/lib , but still no luck.

like image 834
jilen Avatar asked Dec 28 '22 04:12

jilen


2 Answers

I am not a wx expert, but you likely additionally need the C headers for these libraries. Look for your distribution's "development" package for these libraries; in many distributions, these packages are named the same as the library package itself, but with "-dev" added at the end of the name.

like image 58
Daniel Wagner Avatar answered Jan 18 '23 17:01

Daniel Wagner


sudo apt-get install libwxgtk-media3.0-dev

works for me

like image 22
ndong Avatar answered Jan 18 '23 18:01

ndong