How to solve “bad interpreter: No such file or directory”

前端 未结 6 1254
礼貌的吻别
礼貌的吻别 2021-01-31 08:12

I\'m trying to run a sh script and get the following error on Mac:

/usr/bin/perl^M: bad interpreter: No such file or directory

How

6条回答
  •  孤街浪徒
    2021-01-31 08:46

    And if you prefer Sublime Text - simply go to View -> Line Endings and check Unix.

提交回复
热议问题