A man trying to marry his computer is suing Alabama for not recognizing the marriage, according to a federal lawsuit.