Question

installer wxWidgets macports alors couru la commande suivante: sudo cabal install wx dont la sortie inclus:

/bin/sh: wxdirect: command not found
/bin/sh: wxdirect: command not found
/bin/sh: wxdirect: command not found
/bin/sh: wxdirect: command not found
Configuring wxcore-0.12.1.6...
setup: Missing dependency on a foreign library:
* Missing C library: wx_macu-2.8
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
wx-0.12.1.6 depends on wxcore-0.12.1.6 which failed to install.
wxcore-0.12.1.6 failed during the configure step. The exception was:
ExitFailure 1

J'ai eu la même erreur quand je cette commande: sudo cabal install wx --extra-include-dirs=/opt/local --extra-lib-dirs=/opt/local. Comment puis-je installer wx_macu-2.8, ou faire ce que je dois faire pour résoudre ce problème?

Était-ce utile?

La solution

dit que vous manque une bibliothèque C, pas une bibliothèque Haskell. Cabal ne peut pas installer des bibliothèques arbitraires C.

Vérifiez le gestionnaire de paquets pour votre distribution pour vous assurer que vous avez tout à voir avec wxWidgets-2.8, y compris les packages développeur.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top