#Unable to find zig installation dir

1 messages · Page 1 of 1 (latest)

cold adder
#

Did you copy the executable?

If so, try symlinking it. I think zig uses other files in the folder it was in

#

In linux, ln -s <from-path> <to-path> should work

-s is for symbolic link

I recommend putting an absolute path in <from-path>

#

Probably <to-path> is /bin/zig

#

zig executable

#

You should delete your zig executable copy in /bin

cold adder
#

(1) Did it work?

(2) (I should have asked this first) Did you try to run the zig executable from the untared folder?

slow kite
#

iirc if zig is at ZIG_PATH zig searches for $ZIG_PATH/lib, $ZIG_PATH/lib/zig, $ZIG_PATH/../lib, $ZIG_PATH/../lib/zig

#

so if zig in /usr/local/bin you can place the stdlib at /usr/local/lib/zig