user7637341
user7637341

Reputation: 481

Haskell missing files in base package

I have never had this before but today I tried to use ghc and get:

could not find module
there are files missing in the base-4.10.0.0 package

ghc-pkg check returns:

https://pastebin.com/aCmr9igi

Upvotes: 15

Views: 6657

Answers (3)

pyrospade
pyrospade

Reputation: 8070

You probably need to tell ghc to use shared libraries via the -dynamic flag, e.g.

$ ghc --make -dynamic path/to/file.hs

Doing this means you do not need to install the ghc-static package.

Upvotes: 13

Dominik Schrempf
Dominik Schrempf

Reputation: 877

Try to tell ghc to build dynamically linked object files and executables, e.g., by

cabal install --dependencies-only --ghc-option=-dynamic

Upvotes: 6

qfwfq
qfwfq

Reputation: 2526

I had the exact same issue. Installing ghc-static fixed it.

Upvotes: 15

Related Questions