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

前端 未结 6 1252
礼貌的吻别
礼貌的吻别 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:58

    An alternative approach:

    sudo ln -s /usr/bin/perl /usr/local/bin/perl`echo -e '\r'`
    

提交回复
热议问题