Jack,
You must get the nut torqued properly and then, if necessary, go just hair beyond or back, to allow the slot in the nut to align with the through hole in the pinion gear. Then the pin will slide in.
That is why the nut is "castled". To allow several slots to align with "one" through hole, without loosing the applied torque needed to keep the parts assembled properly.
Good luck,