Karlsruhe Institute of Technology
Gerwig was born on 2 May 1820 in Karlsruhe, in the Grand Duchy of Baden, and attended the Großherzogliches Polytechnikum (now known as Karlsruhe Institute of Technology) where he studied civil engineering, primarily road construction.