/usr/bin/perl: bad interpreter: Text file busy

后端 未结 6 1460
挽巷
挽巷 2020-12-14 06:06

This is a new one for me: What does this error indicate?

  /usr/bin/perl: bad interpreter: Text file busy

There were a couple of disk-inte

6条回答
  •  天命终不由人
    2020-12-14 06:47

    If the script was edited in Windows, or any other OS with different "native" line endings, it could be as simple as a CR(^M) "hiding" at the end of the first line. Vi improved can be set up to hide this non native line ending. In my case I simply re-typed the offending first line in VI and the error went away.

提交回复
热议问题