A planned $2.7 billion deal between pharma companies Salix and Cosmo, motivated in part by the opportunity to do a tax inversion, has fallen through.

"There has been a change in the environment after we struck the deal," Alessandro Della Cha, chief executive of Cosmo, told CNBC in a phone call.