#115 OS detection not working on macos zsh

closed
nobody
None
5
2014-02-24
2009-08-28
Anonymous
No

i get this:

jd-mac% make
/bin/sh: config/config.guess: /bin/sh^M: bad interpreter: No such file or directory
/bin/sh: config/config.guess: /bin/sh^M: bad interpreter: No such file or directory
Makefile:40: *** "Platform '' not supported". Stop.
jd-mac%

fixed by setting SYSTEM=darwin in the Makefile

(i use ZSH)

Discussion

  • Got the same error on gentoo amd64. fixed it by removing the first linebreak (or whatever character it was) from config.guess and saving the five with another encoding.

     
  • to fix it

    1. open config.guess with text edit. Delete the last character in the first line by placing cursor in the beginning of 2nd line and press delete key. Then press Enter to move the 2nd line back.

    2. vi config/config.guess
      press esc
      type
      :%s/\r/\n/g

    save and exit by typing
    :wq

    that's it

     

  • Anonymous
    2014-02-24

    Hi, 90 % of the source code is compiled in windows hence not working in linux so execute the command as dos2unix and then the filename

     


Anonymous


Cancel   Add attachments