Thank you,

The option worked like a charm but I still got the same error. I will open
an issue. I'm starting to think maybe the install program checks if it can
create a symlink and it detects it cannot because of the read-only flag
even if it could create it. I even tried it as admin. Thanks for your help,
I will open a ticket with the full output.

Le lun. 19 sept. 2022 à 12:57, Mike Pilgrem <[email protected]> a écrit :

> The Stack option `local-programs-path` can be set in Stack's project-level
> YAML configuration file (`stack.yaml`) or its global-level YAML
> configuration file (`config.yaml`) - see
> https://docs.haskellstack.org/en/stable/yaml_configuration/#local-programs-path
> .
>
> I think this is unlikely to be the solution, but if you delete `7z.dll`
> and `7z.exe` in Stack's programs directory (its location reported by `stack
> path --programs`), Stack will fetch the most up-to-date version of 7-Zip
> (that is a recent development).
>
> On Sunday, September 18, 2022 at 11:37:37 PM UTC+1 [email protected]
> wrote:
>
>> Thanks for the reply.
>>
>> I noticed that files
>> in C:\Users\houde\AppData\Local\Programs\stack always revert back to
>> read-only even if I change permissions or uncheck "read-only" . It does not
>> seem to be due to "Controlled Folder Access" feature that comes with
>> Windows Defender because I have another antivirus. Should I still open an
>> issue on github because it does not seem related to stack. All my folders
>> under AppData are read-only. Is there a way to tell stack to install ghc
>> and other binaries to another folder ?
>>
>> I'm on Windows 10 and installed stack with ghcup.
>>
>> Thanks
>>
>> Le dim. 18 sept. 2022 à 15:24, Mike Pilgrem <[email protected]> a
>> écrit :
>>
>>> I use Stack on Windows 11, but I have not encountered that problem
>>> myself and cannot recreate it with Stack 2.7.5 or 2.9.1 (pre-release).
>>> Please can you raise an issue on Stack's GitHub repository (
>>> https://github.com/commercialhaskell/stack) and include your version of
>>> Windows and the full output of the Stack command. Perhaps we can work out
>>> how your Windows system and mine differ, with a view to finding a solution
>>> for you.
>>>
>>> On Saturday, September 17, 2022 at 5:56:02 PM UTC+1 [email protected]
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> I juste downloaded stack on my Windows PC. I get the following error
>>>> when trying to compile a simple Haskell program.
>>>>
>>>> Extracted 15 filesERROR: Cannot create symbolic link : A required
>>>> privilege is not held by the client
>>>> Problem while decompressing msys2-20220503.tar
>>>>
>>>> BTW, anyone programming Haskell on Windows ? Should I switch to Linux ?
>>>>
>>>> Thanks
>>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "haskell-stack" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/haskell-stack/1oVxBPTSW4M/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/haskell-stack/6f18c8c2-4014-4b36-86eb-c10e51075061n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/haskell-stack/6f18c8c2-4014-4b36-86eb-c10e51075061n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "haskell-stack" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/haskell-stack/1oVxBPTSW4M/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/haskell-stack/353079ce-d2fc-4417-9118-e763d0a874e7n%40googlegroups.com
> <https://groups.google.com/d/msgid/haskell-stack/353079ce-d2fc-4417-9118-e763d0a874e7n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/CAO0wYKSmhkvx-mSFqP7mHfyf3UpDtGgOO7dLxGFJ5FgS_kWiVA%40mail.gmail.com.

Reply via email to