libxml2 is missing error

2019-09-01 10:28发布

问题:

I am using OSX Yosemite (10.10.3), and when I try to install cupertino via gem using "gem install cupertino" I get the following error. What can I do to correct this. I have tried many solutions I have tried online to no avail.

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

回答1:

On Ubuntu a apt-get install libxml2-dev will install the missing parts.



标签: ruby libxml2