Could not find function xmlCheckVersion in library libxml2
Homebrew doesn't link libxml and libxslt to avoid conflicts. You need to
brew link libxml2 --force brew link libxslt --force
I faced this problem when I upgraded to latest OS X. I wrote a blog post on it detailing the issue.