can not install 12.9 on Mountain lion using latest Xcode

When I tried to install, it prompt

XCode Version 3.2 or higher is required for this installation.

But actually I am using Xcode4.5, I also set Xcode path using
sudo xcode-select -switch /Applications/

I need a help. Thank you in advance.

  1. do you have gcc installed? If not, do you have the Xcode command line
    tool installed? the following
% sudo xcode-select -switch /Applications/ Contents/Developer
% /usr/bin/xcode-select -print-path

#make sure that it prints /Applications/ Contents/Developer

then install again.

Also make sure 'remote login’s are enabled.