#How do I properly install zig to bin/?

1 messages · Page 1 of 1 (latest)

drifting laurel
#

I have installed zig through a pre-built download, and had the exe. it worked fine. I'm currently attempting to install this exe to /bin but have been unsuccessful because when using zig from there by just running "zig run path" i get the error
error: unable to find zig installation directory: FileNotFound
This is probably becuase i just moved the file to bin instead of specifically installing it to bin, like in some C projects i've installed to bin by just "sudo make install" and it works, but with zig i cannot find a way to do that. i have tried googling for a bit now.

#

to clarify, when i say "bin/" i mean the system "/bin/" folder

twilit solstice
#

I usually put mine in ~/.local/share and then symlink in ~/.local/bin

Then make sure that ~/.local/bin is in the PATH

drifting laurel
#

(i'll msg when i get that done)

#

should .local/bin really be on path? for some reason my system seems to store my python imports there, and having all those on path doesn't seem ideal

#

oh... these python thingies are already on PATH

#

alright thanks! it's all working now (i symlinked the folder instead of the file, i actually didn't know you could simlink files)