Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .