Zachariasiewicz came from a wealthy family and he was the only child of Antonina Gwiazdowska and Aleksander Zachariasiewicz. He started his education in a Lower-Secondary School in Przemyśl. In 1842 he was arrested and sent to prison for a plot in which he did not take part. In 1844 he returned to Radymno and later went to study at the University of Lwów. He studied literature, history and Maths classes.