Вопрос

Я устанавливаю WXWidgets с MacPorts, затем запустил команду: sudo cabal install wx Какой вывод включен:

/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

Я получил ту же ошибку, когда использовал эту команду: sudo cabal install wx --extra-include-dirs=/opt/local --extra-lib-dirs=/opt/local. Отказ Как я могу установить WX_MACU-2.8 или делать то, что мне нужно сделать, чтобы исправить эту проблему?

Это было полезно?

Решение

Это говорит, что вы пропустите библиотеку C, а не библиотеку Haskell. Cabal не может установить произвольные библиотеки C.

Проверьте менеджер пакета для вашего распространения, чтобы убедиться, что у вас есть все, что связано с WxWidgets-2.8, включая любые пакеты разработчиков.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top