problem installing network on windows

this is using GHC 7.4.1 and using the cabal which came with the latest haskell platform. I wiped clean my$HOME/cabal and $HOME/ghc, $HOME being %AppData%. In $HOME/cabal/configI set those options: library-profiling: True user-install: True Any idea? emmanuel ... [8 of 8] Compiling Network ( Network.hs, dist\build\Network.p_o ) Network.hs:291:13: Warning: Pattern match(es) are overlapped In a case alternative: _ -> ... Registering network-2.4.0.1... Installing library in C:\Users\emmanuelto\AppData\Roaming\cabal\network-2.4.0.1\ghc-7.6.1 Registering network-2.4.0.1... cabal: Error: some packages failed to install: network-2.4.0.1 failed while downloading the package. The exception was: DeleteFile "C:\\Users\\EMMANU~1\\AppData\\Local\\Temp\\network-2.4.0.1-2768\\network-2.4.0. 1\\conf5576.lnk": permission denied (Access is denied.)

hmm maybe a step forward...
running:
cabal install network --reinstall -v
the final output lines are in fact:
Registering network-2.4.0.1...
C:\ghc\ghc-7.6.1\bin\ghc-pkg.exe update - --global --user
cabal: permission denied
On Fri, Dec 21, 2012 at 8:58 PM, Emmanuel Touzery
this is using GHC 7.4.1 and using the cabal which came with the latest haskell platform. I wiped clean my $HOME/cabal and $HOME/ghc, $HOME being %AppData%.
In $HOME/cabal/config I set those options: library-profiling: True user-install: True
Any idea?
emmanuel
... [8 of 8] Compiling Network ( Network.hs, dist\build\Network.p_o )
Network.hs:291:13: Warning: Pattern match(es) are overlapped In a case alternative: _ -> ... Registering network-2.4.0.1... Installing library in C:\Users\emmanuelto\AppData\Roaming\cabal\network-2.4.0.1\ghc-7.6.1 Registering network-2.4.0.1... cabal: Error: some packages failed to install: network-2.4.0.1 failed while downloading the package. The exception was: DeleteFile
"C:\\Users\\EMMANU~1\\AppData\\Local\\Temp\\network-2.4.0.1-2768\\network-2.4.0. 1\\conf5576.lnk": permission denied (Access is denied.)

running cmd.exe as admin or marking ghc-pkg to be run as administrator does
not help.
On Fri, Dec 21, 2012 at 9:36 PM, Emmanuel Touzery
hmm maybe a step forward...
running: cabal install network --reinstall -v
the final output lines are in fact:
Registering network-2.4.0.1... C:\ghc\ghc-7.6.1\bin\ghc-pkg.exe update - --global --user cabal: permission denied
On Fri, Dec 21, 2012 at 8:58 PM, Emmanuel Touzery
wrote: this is using GHC 7.4.1 and using the cabal which came with the latest haskell platform. I wiped clean my $HOME/cabal and $HOME/ghc, $HOME being %AppData%.
In $HOME/cabal/config I set those options: library-profiling: True user-install: True
Any idea?
emmanuel
... [8 of 8] Compiling Network ( Network.hs, dist\build\Network.p_o )
Network.hs:291:13: Warning: Pattern match(es) are overlapped In a case alternative: _ -> ... Registering network-2.4.0.1... Installing library in C:\Users\emmanuelto\AppData\Roaming\cabal\network-2.4.0.1\ghc-7.6.1 Registering network-2.4.0.1... cabal: Error: some packages failed to install: network-2.4.0.1 failed while downloading the package. The exception was: DeleteFile
"C:\\Users\\EMMANU~1\\AppData\\Local\\Temp\\network-2.4.0.1-2768\\network-2.4.0. 1\\conf5576.lnk": permission denied (Access is denied.)

i think it works now, although i still get a permission denied error, the
package appears registered.
ghc-pkg list | grep network
shows the package and i can install further packages.
so i guess the problem is solved now... not sure which step made it work
in the end.. probably the admin rights.
emmanuel
On Fri, Dec 21, 2012 at 9:44 PM, Emmanuel Touzery
running cmd.exe as admin or marking ghc-pkg to be run as administrator does not help.
On Fri, Dec 21, 2012 at 9:36 PM, Emmanuel Touzery
wrote: hmm maybe a step forward...
running: cabal install network --reinstall -v
the final output lines are in fact:
Registering network-2.4.0.1... C:\ghc\ghc-7.6.1\bin\ghc-pkg.exe update - --global --user cabal: permission denied
On Fri, Dec 21, 2012 at 8:58 PM, Emmanuel Touzery
wrote: this is using GHC 7.4.1 and using the cabal which came with the latest haskell platform. I wiped clean my $HOME/cabal and $HOME/ghc, $HOME being %AppData%.
In $HOME/cabal/config I set those options: library-profiling: True user-install: True
Any idea?
emmanuel
... [8 of 8] Compiling Network ( Network.hs, dist\build\Network.p_o )
Network.hs:291:13: Warning: Pattern match(es) are overlapped In a case alternative: _ -> ... Registering network-2.4.0.1... Installing library in C:\Users\emmanuelto\AppData\Roaming\cabal\network-2.4.0.1\ghc-7.6.1 Registering network-2.4.0.1... cabal: Error: some packages failed to install: network-2.4.0.1 failed while downloading the package. The exception was: DeleteFile
"C:\\Users\\EMMANU~1\\AppData\\Local\\Temp\\network-2.4.0.1-2768\\network-2.4.0. 1\\conf5576.lnk": permission denied (Access is denied.)
participants (1)
-
Emmanuel Touzery