Getting exec: zig-out/bin/main: not found error

I’m stuck on Stage #ZV2.

when i run codecrafters test or codecrafters submit get error as in below screen shot.

Hey @Chaituvarma-109, could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.

[github](https://github.com/Chaituvarma-109/codecrafters-shell-zig.git\)

I am also stuck on the same stage with a similar problem…?
There could be some issue with the test runner for that specific stage not being able to open files?

1 Like

hey, did the problem solved. still stuck with same problem.

@andy1li i am still stuck with same problem
my project github.

@Chaituvarma-109 Sorry for the delayed response!

To fix this, please update .codecrafters/run.sh to the following:

#!/bin/sh

set -e

exec "$(dirname "$0")"/zig-out/bin/main "$@"

Let me know if it still fails after the update.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.