drupal 7 install fails with call to undefined function

if you get

Fatal error: Call to undefined function field_attach_load() in /var/www/drupal/includes/entity.inc on line 316

just drop all the tables in your drupal db and rerun /install