Uploading a sketch causing an error message in Arduino Uno avrdude: 


  no programmer has been specified on the command line or the config
  file
           Specify a programmer using the -c option and try again
On the "Tools" menu choose "Programmer:" and specify AVRISP mkII; be sure that you've also chosen the appropriate "Board:" entry for the Uno.