I tried to install the command line tools on Mavericks following the steps in this very useful post
> xcode-select --install
but after a
I had this problem for months and finally found the solution.
The problem was: I had installed it before and removed it manually. (I had problems with the bundled git. It was not the smartest move to do this.)
What i didn't remove were the files
/var/db/receipts/com.apple.pkg.CLTools_Executables.bom
/var/db/receipts/com.apple.pkg.CLTools_Executables.plist
Delete them, run xcode-select --install
-> no error anymore
At least it worked for me. Hope it is helpful for somebody.