Thursday, March 21, 2013
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: Error: No Xcode installation was found. Error: Please install Xcode and/or run xcode-select to specify its location. Error:
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 12:24 AM |Comments (0)