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!
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With