Xcode is not currently available from the Software Update server

后端 未结 15 2243
[愿得一人]
[愿得一人] 2020-11-28 02:01

I have problems with my macport after update to OS X 10.9.

I try to follow this manual https://trac.macports.org/wiki/Migration to fix them.

But when I inst

相关标签:
15条回答
  • 2020-11-28 03:02

    Once you get the command line tools loaded as described by Nikos M in his excellent answer above you will need to agree to the gcc license and if you are using ruby gems you may need to link llvm-gcc as gcc-4.2.

    If you do not do these the gem install will report "You have to install development tools first." after you have already installed them.

    The steps are:

    sudo gcc
    sudo ln -s /usr/bin/llvm-gcc /usr/bin/gcc-4.2
    

    The gcc must be run once under sudo so Apple can update their license info, you don't need an input file, it will update the license before it checks its arguments. The link is needed so that ruby 1.9 can find the compiler when building certain gems, such as the debugger. This may be fixed in ruby 2.x, but I'll cross that bridge when I get there.

    0 讨论(0)
  • 2020-11-28 03:03

    If you are trying this on a latest Mac OS X Mavericks, command line tools come with the Xcode 5.x

    So make sure you have installed & updated Xcode to latest

    after which make sure Xcode command line tools is pointed correctly using this command

    xcode-select -p
    

    Which might show some path like

    /Applications/Xcode.app/Contents/Developer

    Change the path to correct path using the switch command:

    sudo xcode-select --switch /Library/Developer/CommandLineTools/
    

    this should help you set it to correct path, after which you can use the same above command -p to check if it is set correctly

    0 讨论(0)
  • 2020-11-28 03:04

    Command + Space

    Search for Xcode

    Open it and accept license

    Then run again from terminal xcode-select --install

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