haskell - Installing Cabal has missing modules -


My ghc was installed so I decided to restore ghc and cabal to fix some problems. I started following the steps GHC is now version 7.8.3.

I then removed ~ / .cabal and tried to use the steps but it failed. So I removed again and then tried the steps but when i run sh bootstrap.sh then it goes into the missing module:

  parsec-3.1 Using local tarball for .6. [1 to 1] Compilation Main (Setup.hs, Setup.o) Linking Setup ... Configuring Parsec-3.1.6 ... Building Parsak-3.1.1.1 ... Preprocessing Library Parsac-3.1.1 ... Text /Parsec/Prim.hs:80:8: The module could not be found. Control.Monad Transitions files are missing in "MTL -2.2.1" Package, try running 'ghc-pkg check' - Use the -v to see a list of files used Text / Parse / Prime HIS: 81: 8: Modules Can not be found. Control.Monad The identity files are missing in "MTL -2.2.1" package, try running 'ghc-pkg check' - Use the -v to see a list of files used Text / Parsek / Prime HS: 83: 8: Modules Could not find Control.Monad Reader Class files are missing in "MTL -2.2.1" Package, try running 'ghc-pkg check' - Use the -v to see a list of files used Text / Parske / Prime HIS: 84: 8: Module Could not find Control.Monad.State. Class files are missing in "MTL -2.2.1", try running 'ghc-pkg check' - Use the -v to see the list of files used / text / parske / prime hs: 85: 8: module Could not find Control.Monad.Cont. Class files are missing in "MTL -2.2.1", try running 'ghc-pkg check' - Use the -v to see the list of files used / text / parske / prime HIS: 86: 8: module Could not find Control.Monad.Air Class. Files are missing in "MTL -2.2.1", try running 'ghc-pkg check' - Use the -v to see a list of files used / text / parske / text. HS: 19:18: The module could not be found. Files are missing in- Lesson -1.2.0.0 Package, try running 'ghc-pkg check' -V to see the list of files used / text / parse / text / lazy HS: 19:18: The module could not be found. Data Lesson Files are missing in- Lesson -1.2.0.0, Try running 'ghc-pkg check' Use the -v to see a list of files used Cabal-install Error during bootstrap: The creation of the parsec package failed .   

When I run ghc-pkg check , I get a lot of stuff like this:

  Can not find any ["libHSOpenGLRaw-1.5.0.0.a", "libHSOpenGLRaw-1.5.0.0.p_a", "libHSOpenGLRaw-1.5.0.0-ghc7.8.3.so", "libHSOpenGLRaw-1.5.0.0-ghc7.8.3 .dylib "," HSOpenGLRaw -1.5.0.0-ghc7.8.3.dll "] Warn on the library path: Haddock-Interface: /usr/local/share/doc/x86_64-linux-ghc-7.8.3/Cabal-1.21. 1.0 / html / Cabal Haddock does not exist or is not a file Warning: Headoc-HTML: /usr/local/share/doc/x86_64-linux-ghc-7.8.3/Cabal-1.21.1.0/html does not exist or not   

And then this :

  The following packages are broken, either because they have the problem listed above, or because they depend on a broken object package. Lesson -1.1.0.1 Cabal-1.20.0.2 zlib-0.5.4.1 contravariant-1.2 Zero -0.6.1 NetWire-5.0 Semi-Grade-1.0.15.3 Unmoded Container -0.2.5.0 Transformer-Compat-0.3.3.4 Exception -0.6.1 Monadrendam-0.3MTL -2.2.1 Transformer -0.4.1.0 CPFS -1.18.5 PolyPars-1.9 NATS-0.2Hashbull-1.2.2.0 OpenGL-2.9.2.0 Text-2.1.0.0 Tag-0.7.2 STB-Image-0.2. 1 Split-0.2.2 Reflection -1.5.1 Random-1.1.1.1 Primitive -0.5.3.0 Proposal - Extra -0.4 Parallel-3.2.0.4 Bitmap -0.0.2 Binding-DSL-1.0.21 GLURU-1.4.0.1 OpenGLRaw- 1.5.0.0    

You can either ghc-pkg unregister to remove them correctly on each broken package, or possibly the entire ~ / .ghc folder and start over again - Force you may need to respect the package dependency command.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -