[1] The son of Thomas Bugge Pihl and Fredrikke Wivicke Margrethe Løvold, he started off as a seaman, but soon chose to attend Chalmers University of Technology in Gothenburg (1841–1844).
After completion of the line in 1854 he moved back to England for a year, but later returned to work on the Telemark Canal, and subsequently as county engineer in Akershus.
In 1858 the office of Statens Jernbaneanlægs hovedkontor was created to manage the state railways, and Pihl was hired as its director.
When this was transformed to the Norwegian State Railways in 1883, Pihl was appointed director of the fixed-stock division—a position he held until his death.
During his last fourteen years he was considerably less influential than he previously had been, but he remained the highest-paid civil servant in Norway at the time.
He sailed from Christiana to England where he spent much time as a guest of the 3rd Duke of Sutherland, and Sir Henry Whatley Tyler, visiting John Ramsbottom at the London and North Western Railway company's locomotive works at Crewe.
Through his influential position in the department he convinced the politicians that all new railways should be built on the narrow gauge—except those that would connect with the Swedish system, where standard gauge had become the norm.
[7][9] The trains promoted by Pihl had a centre buffer-coupling more suited to sharp curves than the original twin buffer and chain model developed by Stephenson.