Установить Happstack-server 6.5.3 на OSX - отсутствует libcryptopp

Я пытаюсь установить на osx последнюю версию сервера happystack. Они просто добавили зависимость от libcryptopp, и я не могу заставить ее работать.

~$ cabal install happstack-server
Resolving dependencies...
Configuring happstack-server-6.5.3...
cabal: Missing dependency on a foreign library:
* Missing C library: cryptopp
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:
happstack-server-6.5.3 failed during the configure step. The exception was:
ExitFailure 1

Итак, затем я устанавливаю libcryptopp с macports, который помещает libcryptopp.a в / opt / local / lib

sudo port install libcryptopp

Затем я снова устанавливаю сервер happystack с помощью --extra-lib-dirs

cabal install happstack-server --extra-lib-dirs=/opt/local/lib

Он устанавливается нормально, все кажется, работает, пока я действительно не запустил сервер Happystack.

~$ runhaskell Hello.hs
Hello.hs: : can't load .so/.DLL for: libcryptopp.dylib (dlopen(libcryptopp.dylib, 9): image not found)

Что я делаю не так? Или это ошибка с happystack? У меня даже нет .dylib после установки библиотеки через macports, только .a. ghc --make Hello.hs еще безумнее

5
задан Sean Clark Hess 26 January 2012 в 14:43
поделиться