[Haskell-beginners] problem installing network on windows

Emmanuel Touzery etouzery at gmail.com
Fri Dec 21 22:11:55 CET 2012


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 <etouzery at gmail.com>wrote:

> 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 <etouzery at gmail.com>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 <etouzery at gmail.com>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.)
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20121221/fa06065b/attachment-0001.htm>


More information about the Beginners mailing list