Pregunta

instalo wxWidgets con macports luego ejecutó el comando: sudo cabal install wx qué salida incluye:

/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

Tengo el mismo error cuando utilicé este comando: sudo cabal install wx --extra-include-dirs=/opt/local --extra-lib-dirs=/opt/local. ¿Cómo puedo instalar wx_macu-2.8, o hacer lo que tengo que hacer para solucionar este problema?

¿Fue útil?

Solución

Esto es decir que se echa en falta una biblioteca C, no una biblioteca de Haskell. Cabal no puede instalar bibliotecas de C arbitrarias.

Comprobar el gestor de paquetes para su distribución a asegurarse de que tiene mucho que ver con wxWidgets-2.8, incluidos los paquetes de desarrollo.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top