I'm running into the same error message when trying to flash the bootloader from a terminal window on a mac. Are you using the fastboot from the Android SDK? And are you using a terminal window or command prompt?
EDIT: So I took my friends phone home and used the fastboot from the platform...