Where is libHSprimitive-0.5.3.0.so

haskell, mflow

Solution

I ran into the exact same issue. So here's some elaboration on the problem.

The comment by user2407038 provided the answer. By default, `shared` is set to `False` so shared libraries are not built. This means any libraries that expect to link to the shared library `libHSprimitive-*.so` would fail to build.

The solution was to reinstall `primitive` with `shared` set to `True`. You can do this either by modifying `~/.cabal/config` or by passing an extra argument:

cabal install --reinstall --enable-shared primitive

Problem

Trying to install MFlow on linux mint. sudo cabal install MFlow gives me this: Loading package primitive-0.5.3.0 ... : can't load .so/.DLL for: libHSprimitive-0.5.3.0.so (libHSprimitive-0.5.3.0.so: cannot open shared object file: No such file or directory) Failed to install vector-0.10.9.2 cabal tells me that I do have primitive-0.5.3.0 installed. Any hope of getting this to happen? Thanks much for any help!

Original source