Libxml2 missing mac os x 10.10

i fiddled around with this for quite a while and the following worked for me.. 1) install libxml2 with homebrew brew install libxml2 2) install the gem via sudo env ARCHFLAGS=”-arch x86_64″ gem install nokogiri:1.6.4.1 — –use-system-libraries –with-xml=/usr/local/Cellar/libxml2/

installed libtool but libtoolize not found

You typically need to use glibtool and glibtoolize, since libtool already exists on OS X as a binary tool for creating Mach-O dynamic libraries. So, that’s how MacPorts installs it, using a program name transform, though the port itself is still named ‘libtool’. Some autogen.sh scripts (or their equivalent) will honor the LIBTOOL / LIBTOOLIZE … Read more

How check if a String is a Valid XML with-out Displaying a Warning in PHP

Use libxml_use_internal_errors() to suppress all XML errors, and libxml_get_errors() to iterate over them afterwards. Simple XML loading string libxml_use_internal_errors(true); $doc = simplexml_load_string($xmlstr); $xml = explode(“\n”, $xmlstr); if (!$doc) { $errors = libxml_get_errors(); foreach ($errors as $error) { echo display_xml_error($error, $xml); } libxml_clear_errors(); }