wxHaskell fallisce perché dipende wx_macu-2.8
-
01-10-2019 - |
Domanda
installo wxWidgets con macports poi corse il comando: sudo cabal install wx
quale uscita incluso:
/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
ho ottenuto lo stesso errore quando ho usato questo comando: sudo cabal install wx --extra-include-dirs=/opt/local --extra-lib-dirs=/opt/local
. Come posso installare wx_macu-2.8, o fare quello che devo fare per risolvere questo problema?
Soluzione
Questo sta dicendo che vi manca una libreria C, non è una libreria Haskell. Cabal non è possibile installare librerie C arbitrari.
Controlla il gestore di pacchetti per la vostra distribuzione per assicurarsi di avere tutto a che fare con wxWidgets-2.8, tra cui tutti i pacchetti di sviluppo.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow