Try setting LIBS and INC values on the command line Or get libxml2 from http://xmlsoft.org/ If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are.
ながーいエラーログの中で読むべきはここだけでしたという話。
でおしまいでした。yum install libxml2 yum install libxml2-devel
もちろんもっと厄介な場合もあるとは思いますが…!