Closed bronti closed 8 years ago
Trying to install hsdev on Ubuntu (16.04) with
cabal update cabal install hsdev
but error occurs:
Downloading the latest package list from hackage.haskell.org Skipping download: local and remote files match. bronti@bronti-UBU:~/all/study/au/func/class$ cabal install hsdev Resolving dependencies... Configuring hsdev-0.2.0.0... Building hsdev-0.2.0.0... Failed to install hsdev-0.2.0.0 Build log ( /home/bronti/.cabal/logs/hsdev-0.2.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-10128/hsdev-0.2.0.0' Configuring hsdev-0.2.0.0... Building hsdev-0.2.0.0... Preprocessing library hsdev-0.2.0.0... [ 1 of 60] Compiling HsDev.Tools.Ghc.Prelude ( src/HsDev/Tools/Ghc/Prelude.hs, dist/build/HsDev/Tools/Ghc/Prelude.o ) [ 2 of 60] Compiling HsDev.Version ( src/HsDev/Version.hs, dist/build/HsDev/Version.o ) [ 3 of 60] Compiling HsDev.Tools.Ghc.Compat ( src/HsDev/Tools/Ghc/Compat.hs, dist/build/HsDev/Tools/Ghc/Compat.o ) [ 4 of 60] Compiling System.Directory.Paths ( src/System/Directory/Paths.hs, dist/build/System/Directory/Paths.o ) [ 5 of 60] Compiling System.Directory.Watcher ( src/System/Directory/Watcher.hs, dist/build/System/Directory/Watcher.o ) [ 6 of 60] Compiling HsDev.Util ( src/HsDev/Util.hs, dist/build/HsDev/Util.o ) [ 7 of 60] Compiling HsDev.PackageDb ( src/HsDev/PackageDb.hs, dist/build/HsDev/PackageDb.o ) [ 8 of 60] Compiling HsDev.Project.Types ( src/HsDev/Project/Types.hs, dist/build/HsDev/Project/Types.o ) [ 9 of 60] Compiling HsDev.Symbols.Location ( src/HsDev/Symbols/Location.hs, dist/build/HsDev/Symbols/Location.o ) [10 of 60] Compiling HsDev.Symbols.Class ( src/HsDev/Symbols/Class.hs, dist/build/HsDev/Symbols/Class.o ) [11 of 60] Compiling HsDev.Symbols.Documented ( src/HsDev/Symbols/Documented.hs, dist/build/HsDev/Symbols/Documented.o ) [12 of 60] Compiling HsDev.Tools.ClearImports ( src/HsDev/Tools/ClearImports.hs, dist/build/HsDev/Tools/ClearImports.o ) [13 of 60] Compiling HsDev.Types ( src/HsDev/Types.hs, dist/build/HsDev/Types.o ) [14 of 60] Compiling HsDev.Error ( src/HsDev/Error.hs, dist/build/HsDev/Error.o ) [15 of 60] Compiling HsDev.Project ( src/HsDev/Project.hs, dist/build/HsDev/Project.o ) [16 of 60] Compiling HsDev.Watcher.Types ( src/HsDev/Watcher/Types.hs, dist/build/HsDev/Watcher/Types.o ) [17 of 60] Compiling HsDev.Server.Message ( src/HsDev/Server/Message.hs, dist/build/HsDev/Server/Message.o ) [18 of 60] Compiling HsDev.Symbols.Types ( src/HsDev/Symbols/Types.hs, dist/build/HsDev/Symbols/Types.o ) [19 of 60] Compiling HsDev.Symbols ( src/HsDev/Symbols.hs, dist/build/HsDev/Symbols.o ) [20 of 60] Compiling HsDev.Symbols.Util ( src/HsDev/Symbols/Util.hs, dist/build/HsDev/Symbols/Util.o ) [21 of 60] Compiling HsDev.Tools.Types ( src/HsDev/Tools/Types.hs, dist/build/HsDev/Tools/Types.o ) [22 of 60] Compiling HsDev.Watcher ( src/HsDev/Watcher.hs, dist/build/HsDev/Watcher.o ) [23 of 60] Compiling HsDev.Tools.Base ( src/HsDev/Tools/Base.hs, dist/build/HsDev/Tools/Base.o ) [24 of 60] Compiling HsDev.Tools.AutoFix ( src/HsDev/Tools/AutoFix.hs, dist/build/HsDev/Tools/AutoFix.o ) [25 of 60] Compiling HsDev.Tools.Cabal ( src/HsDev/Tools/Cabal.hs, dist/build/HsDev/Tools/Cabal.o ) [26 of 60] Compiling HsDev.Tools.Hayoo ( src/HsDev/Tools/Hayoo.hs, dist/build/HsDev/Tools/Hayoo.o ) [27 of 60] Compiling HsDev.Tools.HLint ( src/HsDev/Tools/HLint.hs, dist/build/HsDev/Tools/HLint.o ) [28 of 60] Compiling HsDev.Tools.HDocs ( src/HsDev/Tools/HDocs.hs, dist/build/HsDev/Tools/HDocs.o ) [29 of 60] Compiling Data.Maybe.JustIf ( src/Data/Maybe/JustIf.hs, dist/build/Data/Maybe/JustIf.o ) [30 of 60] Compiling Data.Lisp ( src/Data/Lisp.hs, dist/build/Data/Lisp.o ) [31 of 60] Compiling Data.Help ( src/Data/Help.hs, dist/build/Data/Help.o ) [32 of 60] Compiling Data.Deps ( src/Data/Deps.hs, dist/build/Data/Deps.o ) [33 of 60] Compiling Control.Concurrent.Util ( src/Control/Concurrent/Util.hs, dist/build/Control/Concurrent/Util.o ) [34 of 60] Compiling Control.Concurrent.FiniteChan ( src/Control/Concurrent/FiniteChan.hs, dist/build/Control/Concurrent/FiniteChan.o ) [35 of 60] Compiling Control.Concurrent.Worker ( src/Control/Concurrent/Worker.hs, dist/build/Control/Concurrent/Worker.o ) [36 of 60] Compiling HsDev.Tools.Ghc.Worker ( src/HsDev/Tools/Ghc/Worker.hs, dist/build/HsDev/Tools/Ghc/Worker.o ) src/HsDev/Tools/Ghc/Worker.hs:78:121: error: • No instance for (MonadLog Ghc) arising from the 'deriving' clause of a data type declaration Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself • When deriving the instance for (MonadLog GhcM) cabal: Leaving directory '/tmp/cabal-tmp-10128/hsdev-0.2.0.0' cabal: Error: some packages failed to install: hsdev-0.2.0.0 failed during the building phase. The exception was: ExitFailure 1
I've updated hsdev.cabal on hackage. Run cabal update (remove ~/.cabal/packages/hackage.haskell.org/*index* if necessary), then install again.
hsdev.cabal
cabal update
~/.cabal/packages/hackage.haskell.org/*index*
Trying to install hsdev on Ubuntu (16.04) with
but error occurs: