checking for libxml/xmlversion.h in /opt/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2... no
Tells me you might be missing libxml2
Try to install it:
sudo apt-get install libxml2-dev
Well, as @TommyNicholas requested, I will try to explain why I zoomed in on libxml2
out of all others - it was a bit of a gut feeling, but I had some clues:
- It was the last line before the install declares failure, so that line has a lot of potential of being a critical error (the installation continues after the other failures...) it may not be the only one, but it deserves attention.
- The error message shows that it searched
libxml2
under/opt/include/
,/usr/local/include/
andusr/include/
- and didn't find it, so it stands to reason that it is not installed. - A similar error is known to happen when installing
Nokogiri
, so it doesn't hurt to try the same solution. - Anyway, if all else fail - RTFM - although my guess worked, the next step is to read the error message, which hints that there may be a more complete report in the logs -
mkmg.log
:
Check the mkmf.log file for more details.