Description
I am trying to build a Haskell IDE around Sublime Text on a Windows platform and have had a number of issues (some of my own making!), including working out how to successfully update and install cabal after installing Haskell Platform. In an attempt to prove I had found the solution I uninstalled Haskell Platform in order to start again. I then discovered the %AppDapa%\cabal
and %AppData%\ghc
folders were not getting deleted. I deleted those after an uninstall, then reinstalled Haskell Platform. I performed a cabal update
followed by cabal install --global cabal-install
but cabal failed to build, as it did again when I performed cabal install cabal-install
for a user install. Consequently, I edited %AppData%\cabal\config
to perform a global install:
32 - | -- user-install: True
32 + | user-install: False
cabal install cabal-install
still failed to build.
The output from cabal install cabal-install -v
is:
>cabal install cabal-install -v
Reading available packages...
Choosing modular solver.
Resolving dependencies...
Ready to install cabal-install-1.20.0.3
Waiting for install task to finish...
Extracting
%AppData%\cabal\packages\hackage.haskell.org\cabal-install\1.20.0.3\cabal-install-1.20.0.3.tar.gz
to %Temp%\cabal-install-1.20.0.3-3632...
Updating cabal-install.cabal with the latest revision from the index.
Configuring cabal-install-1.20.0.3...
creating
%Temp%\cabal-install-1.20.0.3-3632\cabal-install-1.20.0.3\dist\setup
creating
%Temp%\cabal-install-1.20.0.3-3632\cabal-install-1.20.0.3\dist
creating
%Temp%\cabal-install-1.20.0.3-3632\cabal-install-1.20.0.3\dist\setup
%AppData%\cabal\setup-exe-cache\setup-Cabal-1.18.1.3-i386-windows-ghc-7.8.3.exe
configure --verbose=2 --ghc --prefix=%ProgramFiles%\Haskell
--bindir=%ProgramFiles%\Haskell\bin --libdir=%ProgramFiles%\Haskell
--libsubdir=i386-windows-ghc-7.8.3\cabal-install-1.20.0.3
--libexecdir=%ProgramFiles%\Haskell\cabal-install-1.20.0.3
--datadir=%ProgramFiles%\Haskell
--datasubdir=i386-windows-ghc-7.8.3\cabal-install-1.20.0.3 --docdir=%ProgramFiles%\Haskell\doc\i386-windows-ghc-7.8.3\cabal-install-1.20.0.3
--htmldir=%ProgramFiles%\Haskell\doc\i386-windows-ghc-7.8.3\cabal-install-1.20.0.3\html
--haddockdir=%ProgramFiles%\Haskell\doc\i386-windows-ghc-7.8.3\cabal-install-1.20.0.3\html
--sysconfdir=%ProgramFiles%\Haskell\etc --global --flags=-old-directory
--extra-prog-path=%AppData%\cabal\bin --constraint=zlib
==0.5.4.1 --constraint=time ==1.4.2 --constraint=stm ==2.4.2
--constraint=random ==1.0.1.1 --constraint=process ==1.2.0.0
--constraint=pretty ==1.1.1.1 --constraint=network ==2.4.2.3 --constraint=mtl
==2.1.3.1 --constraint=filepath ==1.3.0.2 --constraint=directory ==1.2.1.0
--constraint=containers ==0.5.5.1 --constraint=bytestring ==0.10.4.0
--constraint=base ==4.7.0.1 --constraint=array ==0.5.0.0 --constraint=Win32
==2.3.0.2 --constraint=HTTP ==4000.2.10 --constraint=Cabal ==1.20.0.2
--disable-tests --disable-benchmarks
Redirecting build log to {handle:
%AppData%\cabal\logs\cabal-install-1.20.0.3.log}
Building cabal-install-1.20.0.3...
creating
%Temp%\cabal-install-1.20.0.3-3632\cabal-install-1.20.0.3\dist\setup
%AppData%\cabal\setup-exe-cache\setup-Cabal-1.18.1.3-i386-windows-ghc-7.8.3.exe
build --verbose=2
Redirecting build log to {handle:
%AppData%\cabal\logs\cabal-install-1.20.0.3.log}
Failed to install cabal-install-1.20.0.3
Last 10 lines of the build log ( %AppData%\cabal\logs\cabal-install-1.20.0.3.log ):
Building cabal-install-1.20.0.3...
Preprocessing executable 'cabal' for cabal-install-1.20.0.3...
Building executable cabal...
creating dist\build\cabal
creating dist\build\cabal\cabal-tmp
"%ProgramFiles%\Haskell Platform\2014.2.0.0\bin\ghc.exe" "--info"
"%ProgramFiles%\Haskell Platform\2014.2.0.0\bin\ghc.exe" "--info"
%ProgramFiles%\Haskell Platform\2014.2.0.0\bin\ghc.exe --make -no-link -fbuilding-cabal-package -O -static -outputdir dist\build\cabal\cabal-tmp -odir dist\build\cabal\cabal-tmp -hidir dist\build\cabal\cabal-tmp -stubdir dist\build\cabal\cabal-tmp -i -idist\build\cabal\cabal-tmp -i. -idist\build\autogen -Idist\build\autogen -Idist\build\cabal\cabal-tmp -optP-DWIN32 -optP-include -optPdist\build\autogen\cabal_macros.h -hide-all-packages -no-user-package-db -package-db dist\package.conf.inplace -package-id Cabal-1.20.0.2-a16388bcb008734a1fcd511e545a5444 -package-id HTTP-4000.2.10-987800e8b0c6d40f66bb99afe447f40d -package-id Win32-2.3.0.2-d56c4f098954acca048f4bc5e4a2dfac -package-id array-0.5.0.0-98fe9c08a812a9c7cc1f850abbc1e156 -package-id base-4.7.0.1-b8b519b4c88e723e19a6e0b09e657c9c -package-id bytestring-0.10.4.0-3ac5767dbef80caf4351e9a7659b1514 -package-id containers-0.5.5.1-90fc7ef640bd5e2731140e1fbf95388b -package-id directory-1.2.1.0-8683b51e2f5cf0f2ee71e7410e07382f -package-id filepath-1.3.0.2-5c3cb415b85617527a5cdd5e8d2cdaa7 -package-id mtl-2.1.3.1-b302a49efefb9da50c7e82fda6cad861 -package-id network-2.4.2.3-6312f7d17328f63ad124c9a8ed585201 -package-id pretty-1.1.1.1-c9506cc4f3785a37401342fbd951ee65 -package-id process-1.2.0.0-6756d1f0b295bf0910537627b7cca92a -package-id random-1.0.1.1-45f3a37f12f47b83616e5a6f8138ea9b -package-id stm-2.4.2-2e36688a62070b28018fb04f6deb2a19 -package-id time-1.4.2-29f80b96bef8468cd764ebf6261249d5 -package-id zlib-0.5.4.1-3053a0562e16f53f591449c6d5aef910 -X Haskell98 .\Main.hs -Wall -fwarn-tabs -threaded
<command line>: cannot satisfy -package-id Cabal-1.20.0.2-a16388bcb008734a1fcd511e545a5444
(use -v for more information)
World file is already up to date.
cabal: Error: some packages failed to install:
cabal-install-1.20.0.3 failed during the building phase. The exception was:
ExitFailure 1
>
Is there a way to carry out a complete uninstall of Haskell Platform, cabal, ghc, etc. so that a new install will work? And can anyone advise what is preventing cabal to install?
Thanks