Installing MacPorts with a non-standard XCode install

Ryan Schmidt ryandesign at
Tue Mar 22 20:16:16 PDT 2011

On Mar 22, 2011, at 20:28, Loren Spice wrote:

> I am very stubborn about putting my files where I want them, not where installers want to put them (flat /Applications directories, feugh), and so I'm trying to get MacPorts installed to a custom directory $PREFIX, using an XCode install in the custom location $XCODE.  After much fiddling, I get to the following.
> {{{
> export XCODESDK=$XCODE/System/SDKs/MacOSX10.6.sdk
> export PATH=$PATH:$XCODE/usr/bin LDFLAGS="-L$XCODESDK/usr/lib -I$XCODESDK/usr/include -F$XCODESDK/System/Library/Frameworks" CPPFLAGS="-I$XCODESDK/usr/include"
> ./configure --prefix=$PREFIX/base --with-no-root-privileges --with-tclinclude=$XCODESDK/Tcl.framework/Headers
> }}}

Hmm, why specify the SDK at all? You shouldn't need it.

More information about the macports-users mailing list