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
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
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
source
share