libxml2缺少错误

我正在使用OSX Yosemite(10.10.3),当我尝试使用“gem install cupertino”通过gem安装cupertino时,我收到以下错误。 我该怎么做才能纠正这个问题。 我尝试了很多我在网上试过的解决方案都无济于事。

libxml2 is missing. Please locate mkmf.log to investigate how it is failing. ----- *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers 

在Ubuntu上, apt-get install libxml2-dev将安装缺少的部分。