How to resolve “dyld: Library not loaded: @executable_path..” error

前端 未结 8 1814
傲寒
傲寒 2020-12-24 11:29

I was trying to check the AWS-CLI version on my MAC OS X. And the below error hit back:

dyld: Library not loaded: @executable_path/../.Python
  Referenced f         


        
8条回答
  •  鱼传尺愫
    2020-12-24 11:47

    I had it installed through curl, the regular way

    $ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
    

    Then it stopped working complaining about not finding python2.7

    dyld: Library not loaded: @executable_path/../.Python
      Referenced from: /usr/local/aws/bin/python2.7
      Reason: image not found
    Abort trap: 6
    

    so I fixed it by following these steps (make sure you don't do this if you installed it through brew):

    $ sudo rm -rf /usr/local/aws
    $ sudo rm /usr/local/bin/aws
    

    Then I installed it using brew:

    $ brew upgrade
    $ brew install awscli
    

提交回复
热议问题