Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to build a chroot environment for testing developer builds of some software. I need xcode installed in this chroot to build it, but the xcode package from the snow leopard install dvd will only install to the / target. Is there any way to override this?

share|improve this question

1 Answer 1

You have to set the CM_BUILD env var before running installer. In the terminal do this:

mkdir -p /tmp/chroot
export CM_BUILD=1
sudo installer -target /tmp/chroot -pkg /Volumes/Xcode\ Tools/Packages/DeveloperTools.pkg

I'm working on a project, called joot, to automate creation of chroots. It currently supports only linux, but I'm working on OS X support right now. See http://getjoot.org/

share|improve this answer

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.