Frage

ich installieren wxWidgets mit Macports lief dann den Befehl: sudo cabal install wx die Ausgabe enthalten:

/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

Ich habe den gleichen Fehler, wenn ich diesen Befehl verwendet: sudo cabal install wx --extra-include-dirs=/opt/local --extra-lib-dirs=/opt/local. Wie kann ich installieren wx_macu-2.8, oder tun, was ich tun müssen, um dieses Problem zu beheben?

War es hilfreich?

Lösung

Dies wird sagen, dass Sie eine C-Bibliothek fehlen, nicht eine Haskell-Bibliothek. Cabal kann nicht willkürlich C-Bibliotheken installieren.

Überprüfen Sie den Paketmanager Ihrer Distribution sicherstellen, dass Sie alles haben, mit wxWidgets-2.8, einschließlich Entwicklerpakete zu tun.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top