-
Notifications
You must be signed in to change notification settings - Fork 724
Closed
Description
Hello, I'm a Linux user trying to run cabal sandbox on Windows and it simply does not work, look:
C:\Users\win7>mkdir test
C:\Users\win7>cd test
C:\Users\win7\test>cabal sandbox init
Writing a default package environment file to
C:\Users\win7\test\cabal.sandbox.config
Creating a new sandbox at C:\Users\win7\test\.cabal-sandbox
C:\Users\win7\test>cabal update
Downloading the latest package list from hackage.haskell.org
C:\Users\win7\test>cabal install MissingH
Resolving dependencies...
cabal: internal error when reading package index: could not read tar file
entryThe package index or index cache is probably corrupt. Running cabal
update might fix it.
in the .cabal-sandbox/packages folder I see only 2 files - 00-index.cache and 00-index.tar - the first one is empty and the second is 10 kb file filled with 0. I'm creating sandbox from scratch - this is always the result ....
Some more verbose output:
C:\Users\win7\test>cabal install MissingH -v3
Using a sandbox located at C:\Users\win7\test\.cabal-sandbox
Searching for ghc in path.
Found ghc at C:\Program Files\Haskell Platform\2013.2.0.0\bin\ghc.exe
("C:\\Program Files\\Haskell Platform\\2013.2.0.0\\bin\\ghc.exe",["--numeric-ver
sion"])
C:\Program Files\Haskell Platform\2013.2.0.0\bin\ghc.exe is version 7.6.3
looking for tool ghc-pkg near compiler in C:\Program Files\Haskell
Platform\2013.2.0.0\bin
found ghc-pkg in C:\Program Files\Haskell Platform\2013.2.0.0\bin\ghc-pkg.exe
("C:\\Program Files\\Haskell Platform\\2013.2.0.0\\bin\\ghc-pkg.exe",["--version
"])
C:\Program Files\Haskell Platform\2013.2.0.0\bin\ghc-pkg.exe is version 7.6.3
("C:\\Program Files\\Haskell Platform\\2013.2.0.0\\bin\\ghc.exe",["--supported-l
anguages"])
("C:\\Program Files\\Haskell Platform\\2013.2.0.0\\bin\\ghc.exe",["--info"])
The package database already exists:
C:\Users\win7\test\.cabal-sandbox\i386-windows-ghc-7.6.3-packages.conf.d
Reading available packages...
Reading available packages...
Reading installed packages...
("C:\\Program Files\\Haskell Platform\\2013.2.0.0\\bin\\ghc-pkg.exe",["dump","--
package-db=C:\\Users\\win7\\test\\.cabal-sandbox\\i386-windows-ghc-7.6.3-package
s.conf.d","-v0"])
("C:\\Program Files\\Haskell Platform\\2013.2.0.0\\bin\\ghc.exe",["--print-libdi
r"])
Reading installed packages...
("C:\\Program Files\\Haskell Platform\\2013.2.0.0\\bin\\ghc-pkg.exe",["dump","--
global","-v0"])
("C:\\Program Files\\Haskell Platform\\2013.2.0.0\\bin\\ghc-pkg.exe",["dump","--
package-db=C:\\Users\\win7\\test\\.cabal-sandbox\\i386-windows-ghc-7.6.3-package
s.conf.d","-v0"])
("C:\\Program Files\\Haskell Platform\\2013.2.0.0\\bin\\ghc.exe",["--print-libdi
r"])
Reading available packages...
Choosing modular solver.
Resolving dependencies...
cabal: internal error when reading package index: could not read tar file
entryThe package index or index cache is probably corrupt. Running cabal
update might fix it.
Metadata
Metadata
Assignees
Labels
No labels