You need to install Xcode from App Store.
Then start Xcode, go to Xcode->Preferences->Downloads
and install component named “Command Line Tools”.
After that all the relevant tools will be placed in /usr/bin folder and you will be able to use it just as it was in 10.6.