Unable to get MacPort functionality after installing Xcode 4.3

后端 未结 17 1920
野趣味
野趣味 2021-01-29 21:51

I am having trouble getting MacPorts to function properly. I just installed OSX Lion 10.7.3 I downloaded and installed MacPorts first, and then after reading the requirements, I

17条回答
  •  伪装坚强ぢ
    2021-01-29 22:20

    Here is a solution that has worked for me:

    1. Install Command Line Tools for Xcode

      Xcode -> Preferences -> Downloads
      
    2. Help MacPorts find the right Xcode folder

      sudo /usr/bin/xcode-select -switch /Applications/Xcode.app
      
    3. Create symbolic links for clang compilers as they now live elsewhere

      sudo ln -s `which clang` /Applications/Xcode.app/Contents/Developer/usr/bin/
      sudo ln -s `which clang++` /Applications/Xcode.app/Contents/Developer/usr/bin/
      

提交回复
热议问题