I had this same problem a couple of days ago. I wasn't able to publish my InfoPath 2013 form library to my test SharePoint 2013 team site. I followed step 1 on my Windows Server R2 virtual machine and I was able to publish my InfoPath 2013 forms to my test SharePoint 2013 site. InfoPath 2013 works perfectly now. Thanks for your help!