Error Message “Xcode alone is not sufficient on Sierra”

前端 未结 5 1627
轻奢々
轻奢々 2021-02-02 06:04

I\'d like to install openCV to vectorize image, but there\'s a series error message regarding Xcode and Ruby.

First, I use terminal to install openCV, brew install

相关标签:
5条回答
  • 2021-02-02 06:45

    I had the same problem. I installed 'Command Line Tools for XCode' (choose appropriate version) from https://developer.apple.com/download/more/ and restarted my terminal. Issue resolved :)

    0 讨论(0)
  • 2021-02-02 06:49

    Trying to install k8s package via brew , I just got the same issue a while ago saying in the terminal :

    Error: Xcode alone is not sufficient on Sierra.

    Install the Command

    Line Tools: xcode-select --install

    You need to download *.dmg file; named Command Line Tools (macOS x.x.x) for XCode N . Search on it here : https://developer.apple.com/download/more/ . You must have developer account.

    Then, congrats!

    0 讨论(0)
  • 2021-02-02 06:50

    I got the same message despite having Xcode and the command line tools already being installed a long time ago and updated numerous times.

    I think it is the Apple way of telling you that Xcode command line tools need to be updated, as the App Store showed me the below:

    After executing the xcode-select --install command, the update disappears from the App Store, which means they are exactly the same thing.

    0 讨论(0)
  • 2021-02-02 06:53

    I had the same issue in my Macbook Pro on Sierra. Apart from updating Xcode from the App Store, I also installed the command line utilities using the xcode-select --install command.

    After the update steps, brew commands started working fine. I also updating my OS during this time.

    0 讨论(0)
  • 2021-02-02 07:06

    Let me explain this myself so people won't make the same mistakes.

    When I saw the last line of the error message

    Error: Xcode alone is not sufficient on Sierra.
    Install the Command Line Tools:
    xcode-select --install 
    

    My thought was: I already have Xcode why the system ask me to "reinstall" it. However, thanks for @SamiKuhmonen @ Beartech @patrick kuang suggestion, I search a page (in Mandarin). xcode-select --install does not reinstall the whole Xcode. It means install some missing command line tools which is required by installing Ruby.

    0 讨论(0)
提交回复
热议问题