1.下载:sudo apt-get install libxml2
2.出现权限问题:chodm a+x
3.编译:g++ sohu.cpp -o sohu.out -I /usr/include/libxml2/ -L /usr/include/lib/ -lxml2