Installation of Midnight Commander on MacOS 10.8.3

Today I needed to install MC on my Mac.
So that is step-by-step guide:

– Installed MacPorts
Downloaded last version pkg from here http://www.macports.org/install.php and installed it

Then I tried to install MC (sudo port install mc) but got error:

Warning: The Command Line Tools for Xcode don’t appear to be installed; most ports will likely fail to build.


So the point here: XCode Command Line Tools need to be installed:

  • Run Xcode
  • Go to Xcode menu and find Preferences
  • Find the Download icon and go to Components tab
  • Click Install button on Command Line Tools item

Then I tried to install MC again:

sudo port install mc

and now it works!