Mac OS: /usr/bin/env: bad interpreter: Operation not permitted

后端 未结 4 794
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 17:40

I\'m trying to run this script on Mac OS 10.7 (Lion) and I\'m getting the error:

$ bbcolors
-bash: /usr/local/bin/bbcolors: /usr/bin/env: bad interpreter: Op         


        
4条回答
  •  我在风中等你
    2020-12-04 18:24

    Did you happen to open/save the file in TextEdit?

    That can introduce filesystem metadata (quarantine attribute) leading to the symptom you describe.

    Try:

    xattr -l /usr/local/bin/bbcolors
    

    and

    xattr -d com.apple.quarantine /usr/local/bin/bbcolors
    

    if you see the quarantine attribute.

提交回复
热议问题