日期:2014-05-16  浏览次数:21154 次

linux 下安装LIBXML2库 失败
linux 下安装libxml2库,安装失败,,,,
具体安装步骤:
1、解压:$tar zxvf libxml2-2.6.20.tar.gz
2、进入解压后的安装目录:$cd libxml2-2.6.20
3、安装三部曲:1)$./configure
              2)$make
              3)$make install
安装完毕。

libxml2安装中出现的错误:

cannot remove `libtoolT': No such file or directory

解决方法:

修改configure文件

$ vim configure

删除这一行: $RM "$cfgfile" 

重新再运行 $ ./configure

出现


make ..

mv: cannot stat `.deps/SAX.Tpo': No such file or directory
make[2]: *** [SAX.lo] Error 1
make[2]: Leaving directory `/root/Kmcfly/Xml/libxml2-2.9.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Kmcfly/Xml/libxml2-2.9.0'
make: *** [all] Error 2

------解决方案--------------------
不知道是不是这样的问题http://www.crifan.com/cygwin_cross_compile_libxml2_arm_xscale_linux_gnueabi_bin_ld_cannot_find_lpython2_6/
------解决方案--------------------
试一下
make uninstall
make distclean;
./configure
make
切换到root用户
make install