يفشل Wxhaskell لأنه يعتمد على WX_MACU-2.8
-
01-10-2019 - |
سؤال
أقوم بتثبيت 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. لا يمكن لكابال تثبيت مكتبات C التعسفية.
تحقق من مدير الحزمة لتوزيعك للتأكد من أن لديك كل ما يتعلق بـ WXWidgets-2.8 ، بما في ذلك أي حزم مطور.
لا تنتمي إلى StackOverflow