dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
682 stars 65 forks source link

0.8.0 Bug: OS error: Permission denied #272

Closed tandy-1000 closed 2 years ago

tandy-1000 commented 2 years ago

After running choosenim update self, choosenim update devel, and choosenim devel, I get the following error:

$ nim
     Error: Spawning of process failed. (Error was: Additional info: "Could not find command: \'/home/tandy/.choosenim/toolchains/nim-#devel/bin/nim\'. OS error: Permission denied")
      Info: If unexpected, please report this error to https://github.com/dom96/choosenim

I managed to fix the error by running sudo chmod +x ~/.choosenim/toolchains/nim-#devel/bin/nim.

geotre commented 2 years ago

Same error here, with a fresh install of choosenim, then running choosenim stable. During the (first) run of choosenim stable I also get ./init.sh: 90: SHELL: parameter not set

jiro4989 commented 2 years ago

Same error here, with a fresh install of choosenim, then running choosenim stable. During the (first) run of choosenim stable I also get ./init.sh: 90: SHELL: parameter not set

@geotre Try this code.

export SHELL=/bin/sh
./init.sh
iffy commented 2 years ago

I think this permission error is probably related to the move to zippy for extracting files? Perhaps zippy doesn't preserve file permissions?

iffy commented 2 years ago

I've submitted a PR to zippy to preserve file permissions: https://github.com/guzba/zippy/pull/32