Install happstack-server 6.5.3 on osx - libcryptopp is missing

I am trying to install the last happstack server on osx. They just added a dependency on libcryptopp, and I can't get it to work.

~$ 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

So, I install libcryptopp using macports, which places libcryptopp.a in / opt / local / lib

sudo port install libcryptopp

Then I install happstack-server again using -extra-lib-dirs

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

It installs fine, everything works until I actually started the happstack server.

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

What am I doing wrong? Or is it a mistake with happstack? I don't even have .dylib after installing lib via macports, only .a. ghc --make Hello.hs even more crazy

+5
source share
2 answers

. https .cabal happstack-server:

: happstack-server.cabal:

Flag https
    Default: False

configure/build/install happstack-server , cabal install happstack.


( Archlinux, --extra-lib-dirs !)

+2

:

g++ -fpic -nostartfiles -nostdlib -shared /usr/local/Cellar/cryptopp/5.6.1/lib/libcryptopp.a -o libcryptopp.dylib

+7

All Articles