Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: /bin/sh^M: bad interpreter: No such file or directory #3

Open
xinaesthete opened this issue Oct 2, 2020 · 3 comments
Open

Comments

@xinaesthete
Copy link

xinaesthete commented Oct 2, 2020

When running build.sh, I get an error bash: ./build.sh: /bin/sh^M: bad interpreter: No such file or directory.

This is not to do with path configuration as far as I can tell; perhaps something odd with the encoding of the file? I have very limited Docker / WSL experience.

Making a new executable file in the same location with the same text content seems to work fine (although I did need to do a git submodule sync --recursive as well, which should perhaps be mentioned in readme or included in script).

@Betoml5
Copy link

Betoml5 commented Dec 27, 2020

I have the same problem.

@xinaesthete
Copy link
Author

xinaesthete commented Dec 28, 2020

I ended up copying the contents of build.sh into another file with a different name and then it mysteriously worked. Never did get to the bottom of that.
Also reviewing my notes I see that I missed a git submodule sync --recursive at one point. That got me a working build (although I also changed .gitmodules where it refers to url = ../../chafey/openjpeg.git to have an absolute path, but I don't think that was necessary to make the build work).
Side-note: I also changed a bit of the configuration to gobble a bit less memory and not spam the log, and have been quite happily running a little pool of workers.

@xinaesthete
Copy link
Author

d'oh I just realised I already included most of that info in my original post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants