DOS line endings (Can't compile on GNU/Linux)

Aug 10 at 3:56 AM
Hello folks!

First and foremost, thank you for your hacking in this wonderful project.

I tried to run autogen.sh on GNU/Linux and this is what I got:

bash: ./autogen.sh: /bin/sh^M: bad interpreter: No such file or directory

I downloaded several other tarballs from this website but the result was the same.

It took me some time to find out that all your files are saved with DOS line endings. I had to change them all to unix.

Maybe this has something to do with your current hosting?

Cheers.
Developer
Oct 15 at 2:27 PM
Edited Oct 17 at 11:50 AM
Hello Everyone,


I had the same problem too. I fixed it by typing the following

sed -i 's/\r//' '/home/user/pcsxr/autogen.sh'
sed -i 's/\r//' '/home/user/pcsxr/strip_fPIC.sh'
sed -i 's/\r//' '/home/user/pcsxr/configure.ac'
sed -i 's/\r//' '/home/user/pcsxr/po/Makefile.in.in'

then run autogen.sh.