Merry Andrew wrote:The second version is incorrect. "Put up" is a compound verb (consisting of two separate words) and may not be split in the middle with a preposition ("with"), or with any other word for that matter. Your first choice is absolutely right, just fine.
Andrew's right, the first one is fine, the second isn't. But the phrasal verb is actually, <put up with>, which means;
from M-W online:
to endure or tolerate without complaint or attempt at reprisal
<put up> has other different meanings, none of which is the same as <put up with sb/sth>