Penguin, small TECH.BARWICK.DE
Mac OS X

Recent posts





Powered By


2013-03-21 01:24:00

Using MacPorts without a full XCode installation

As mentioned previously, it's now possible to install XCode's command line tools without installing the entire XCode environment. This is particularly handy when setting up an environment on a remote Mac. However it looks like MacPorts is still expecting to find the full XCode installation and will complain like this:

Some-Mac-mini:~ root# port install somepackage
Error: No Xcode installation was found.
Error: Please install Xcode and/or run xcode-select to specify its location.

To work around this, edit /opt/local/etc/macports/macports.conf and uncomment the configuration item "developer_dir", changing it to point to /:

# Directory containing Xcode Tools (default is to ask xcode-select)
developer_dir       /

MacPorts will still complain about the missing XCode installation but otherwise seems to work fine.

Somes-Mac-mini:~ ian$ sudo port install somepackage
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.

Posted at 2013-03-21 01:24:00 |Comments (0)