Erect means "to build up" Here, erected a sign means to put up a sign.

However, given the nature of the joke it becomes a pun, as an aroused man is said to be "erect"