- 论坛徽章:
- 0
|
本帖最后由 hidinga 于 2011-10-26 18:12 编辑
操作系统: CentOS release 5.7 (Final)
内核:2.6.18-164.11.1.el5 x86_64 GNU/Linux
libxml2-2.7.8.tar.gz 安装不上, 过程如下:
tar zxvf libxml2-2.7.8.tar.gz
cd libxml2-2.7.8
./configure
- configure: creating ./config.status
- config.status: creating libxml2.spec
- config.status: creating Makefile
- config.status: creating include/Makefile
- config.status: creating include/libxml/Makefile
- config.status: creating doc/Makefile
- config.status: creating doc/examples/Makefile
- config.status: creating doc/devhelp/Makefile
- config.status: creating example/Makefile
- config.status: creating python/Makefile
- config.status: creating python/tests/Makefile
- config.status: creating xstc/Makefile
- config.status: creating include/libxml/xmlversion.h
- config.status: creating xml2-config
- config.status: creating libxml-2.0.pc
- config.status: creating libxml-2.0-uninstalled.pc
- config.status: creating python/setup.py
- config.status: creating config.h
- config.status: config.h is unchanged
- config.status: executing depfiles commands
- config.status: executing libtool commands
- /bin/rm: cannot remove `libtoolT': No such file or directory
- Done configuring
复制代码 make- libtool: link: ar cru .libs/testdso.a testdso.o
- libtool: link: ranlib .libs/testdso.a
- libtool: link: ( cd ".libs" && rm -f "testdso.la" && ln -s "../testdso.la" "testdso.la" )
- gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -fPIC -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT xmllint.o -MD -MP -MF .deps/xmllint.Tpo -c -o xmllint.o xmllint.c
- cc1: warning: -Wuninitialized is not supported without -O
- mv -f .deps/xmllint.Tpo .deps/xmllint.Po
- /bin/sh ./libtool --tag=CC --mode=link gcc -fPIC -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o xmllint xmllint.o ./libxml2.la -lz -lm
- libtool: link: gcc -fPIC -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o .libs/xmllint xmllint.o ./.libs/libxml2.so -ldl -lz -lm -Wl,-rpath -Wl,/usr/local/lib
- ./.libs/libxml2.so: undefined reference to `gzopen64'
- collect2: ld returned 1 exit status
- make[2]: *** [xmllint] Error 1
- make[2]: Leaving directory `/home/ping.bao/libxml2-2.7.8'
- make[1]: *** [all-recursive] Error 1
- make[1]: Leaving directory `/home/ping.bao/libxml2-2.7.8'
- make: *** [all] Error 2
复制代码 附 :
ldconfig -v|ldconfig -v|grep libz
libz.so.1 -> libz.so.1.2.5
libz.so.1 -> libz.so.1.2.3
libz.so.1 -> libz.so.1.2.5
libz.so.1 -> libz.so.1.2.3
在另外一台Ubuntu 的机器上就能装得很顺利 。。。  |
|