Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is libHSprimitive-0.5.3.0.so

Tags:

haskell

mflow

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!

like image 543
Lucas Membrane Avatar asked May 29 '14 07:05

Lucas Membrane


1 Answers

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
like image 194
Rufflewind Avatar answered Nov 17 '22 13:11

Rufflewind