Getting enough people to lay the track down!
No crap. it was the major construction project of the time and they imported labour from China, Ireland and anywhere else they could.
A lot of noise is made about how bad the Chinese were treated. Some of it is true.
They actually treated the Irish worse.