Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have MacPorts installed on my Mac and a lot of ports that were put on my machine years ago by my sysadmin for various purposes. There is quite a lot of garbage out there, but worst of all, the MacPorts system itself is fried.

My immediate desire is to upgrade subversion via MacPorts. When I try to use MacPorts to update itself (sudo port -d selfupdate), I get an inscrutable error message referring to "the log" but it does not indicate which log, as it often does.

After some hacking with -d and poking around at likely logs, it appears that the cc compiler is missing or failing. I have XCode 4.5.2 installed so I am wondering why this issue is occurring.

Bottom line: I am looking for a way to fix MacPorts; then eventually update everything, clean up the inactive ports, and finally make sure subversion is updated.

I am wondering about these possible steps:

  1. Uninstall/reinstall Xcode.

  2. Uninstall/reinstall MacPorts. The instructions for this seem to indicate that all installed ports will be removed, which is scary as I am not sure what that would break, but it would probably break something.

Are these possible corrective paths? Or is there something less drastic?

share|improve this question
    
The macports log does tell you which is the next log to look at - please give the complete error message line - However in this case the issue is not having the Xcode command line tools –  Mark Dec 17 '12 at 0:02
add comment

1 Answer

up vote 1 down vote accepted

The command-line tools are no more bundled with Xcode by default (since). Instead, they can be installed optionally using the Components tab of the Downloads preferences panel.

share|improve this answer
    
Installing the command line tools fixed the problem. Thanks! –  Jeffrey Simon Dec 14 '12 at 16:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.