Parenting armature to mesh with automatic weights
It looks like your images didn't show up correctly. Generally when this happens to me I make sure modifiers are applied, the origin is centered to the mesh, and check my work using weight-painting.