亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 38014 | 回復(fù): 10
打印 上一主題 下一主題

已解決: libxml2 死活安裝不上, 求解 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2011-10-26 15:48 |只看該作者 |倒序?yàn)g覽
本帖最后由 hidinga 于 2011-10-26 18:12 編輯

操作系統(tǒng): CentOS release 5.7 (Final)

內(nèi)核: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

  1. configure: creating ./config.status
  2. config.status: creating libxml2.spec
  3. config.status: creating Makefile
  4. config.status: creating include/Makefile
  5. config.status: creating include/libxml/Makefile
  6. config.status: creating doc/Makefile
  7. config.status: creating doc/examples/Makefile
  8. config.status: creating doc/devhelp/Makefile
  9. config.status: creating example/Makefile
  10. config.status: creating python/Makefile
  11. config.status: creating python/tests/Makefile
  12. config.status: creating xstc/Makefile
  13. config.status: creating include/libxml/xmlversion.h
  14. config.status: creating xml2-config
  15. config.status: creating libxml-2.0.pc
  16. config.status: creating libxml-2.0-uninstalled.pc
  17. config.status: creating python/setup.py
  18. config.status: creating config.h
  19. config.status: config.h is unchanged
  20. config.status: executing depfiles commands
  21. config.status: executing libtool commands
  22. /bin/rm: cannot remove `libtoolT': No such file or directory
  23. Done configuring
復(fù)制代碼
make
  1. libtool: link: ar cru .libs/testdso.a  testdso.o
  2. libtool: link: ranlib .libs/testdso.a
  3. libtool: link: ( cd ".libs" && rm -f "testdso.la" && ln -s "../testdso.la" "testdso.la" )
  4. 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
  5. cc1: warning: -Wuninitialized is not supported without -O
  6. mv -f .deps/xmllint.Tpo .deps/xmllint.Po
  7. /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
  8. 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
  9. ./.libs/libxml2.so: undefined reference to `gzopen64'
  10. collect2: ld returned 1 exit status
  11. make[2]: *** [xmllint] Error 1
  12. make[2]: Leaving directory `/home/ping.bao/libxml2-2.7.8'
  13. make[1]: *** [all-recursive] Error 1
  14. make[1]: Leaving directory `/home/ping.bao/libxml2-2.7.8'
  15. make: *** [all] Error 2
復(fù)制代碼
附 :

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

在另外一臺(tái)Ubuntu 的機(jī)器上就能裝得很順利 。。。

論壇徽章:
1
天秤座
日期:2013-10-23 13:20:42
2 [報(bào)告]
發(fā)表于 2011-10-26 15:57 |只看該作者
可否考慮使用yum安裝編譯好的libxml2-2.7.8?

ps:系統(tǒng)有的
[root@machine1 ~]# rpm -aq|grep -i libxml
libxml2-2.6.26-2.1.2.8
能否滿足你的要求?

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2011-10-26 16:03 |只看該作者
本帖最后由 hidinga 于 2011-10-26 16:11 編輯

回復(fù) 2# jerryjzm


    謝謝 jerryjzm 同學(xué), 我要要安裝 xmlstarlet 這個(gè)小工具來處理 XML,要求 libxml2-2.6.27 以上才行 ... 所以才升級(jí),但是升級(jí)任何版本都不好用

    我下載了 rpm 包的 libxml2-2.7.8 ,安裝的時(shí)候還提示我要升級(jí) glibc ,貌似是更加麻煩 ...

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2011-10-26 16:11 |只看該作者
回復(fù) 1# hidinga


    /bin/rm: cannot remove `libtoolT': No such file or directory  

    去搜搜  ./configure 沒過關(guān)

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2011-10-26 17:50 |只看該作者
回復(fù) 4# taojie2000


    我在UBUNTU 上面也沒有過關(guān),所以個(gè)人認(rèn)為是代碼質(zhì)量問題,作者應(yīng)該是想刪除一個(gè)臨時(shí)的文件,而沒刪成功

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2011-10-26 18:14 |只看該作者
本帖最后由 hidinga 于 2011-10-26 18:16 編輯

安裝了兩個(gè)版本的 zlib,1.2.3 與 1.2.5 , 刪除 1.2.3 相關(guān) so 文件不能解決,刪除 1.2.5 相關(guān)文件,OK了

刪除  /lib/libz.so.1.2.5
刪除  /lib/libz.so
刪除  /usr/lib/libz.so.1
刪除  /usr/lib/libz.so.1.2.5

[root@jsvest xmlstarlet-1.2.1]# ldconfig -v|grep libz

        libz.so.1 -> libz.so.1.2.3
        libz.so.1 -> libz.so.1.2.3

[root@jsvest xmlstarlet-1.2.1]# xml ls|xml ed -d "//@m"
<?xml version="1.0"?>
<dir>
  <d p="rwxr-xr-x" a="20111026T025944Z" s="4096" n="m4"/>
  <f p="rw-r--r--" a="20111026T101154Z" s="24" n="version.h"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="4825" n="NEWS"/>
  <f p="rwxr-xr-x" a="20111026T101147Z" s="44504" n="config.guess"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="7832" n="INSTALL"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="1093" n="COPYING"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="4577" n="configure.ac"/>
  <f p="rwxr-xr-x" a="20111026T101154Z" s="122758" n="xml"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="246" n="README"/>
  <f p="rw-r--r--" a="20111026T101151Z" s="3007" n="config.h"/>
  <f p="rw-r--r--" a="20111026T101148Z" s="1029" n="xmlstarlet.spec.in"/>
  <d p="rwxr-xr-x" a="20111026T025944Z" s="4096" n="solaris"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="1763" n="Makefile.am"/>
  <d p="rwxr-xr-x" a="20111026T025944Z" s="4096" n="tests"/>
  <f p="rw-r--r--" a="20111026T101154Z" s="34756" n="Makefile"/>
  <f p="rw-r--r--" a="20111026T025949Z" s="22739" n="config.log"/>
  <f p="rwxr-xr-x" a="20111026T101147Z" s="18615" n="depcomp"/>
  <f p="rwxr-xr-x" a="20111026T101147Z" s="11419" n="missing"/>
  <d p="rwxr-xr-x" a="20111026T101154Z" s="4096" n="doc"/>
  <d p="rwxr-xr-x" a="20111026T101154Z" s="4096" n="src"/>
  <f p="rwxr-xr-x" a="20111026T101148Z" s="209560" n="configure"/>
  <f p="rw-r--r--" a="20111026T101148Z" s="2698" n="config.h.in"/>
  <d p="rwxr-xr-x" a="20111026T025944Z" s="4096" n="examples"/>
  <f p="rwxr-xr-x" a="20111026T025944Z" s="13663" n="install-sh"/>
  <f p="rwxr-xr-x" a="20111026T101148Z" s="34582" n="config.status"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="52" n="AUTHORS"/>
  <f p="rw-r--r--" a="20111026T101148Z" s="35399" n="Makefile.in"/>
  <f p="rwxr-xr-x" a="20111026T101147Z" s="35206" n="config.sub"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="1" n="ChangeLog"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="199" n="TODO"/>
  <f p="rw-r--r--" a="20111026T025952Z" s="23" n="stamp-h1"/>
  <f p="rw-r--r--" a="20111026T101148Z" s="986" n="xmlstarlet.spec"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="1093" n="Copyright"/>
  <f p="rwxr-xr-x" a="20111026T025944Z" s="3769" n="compile"/>
  <f p="rw-r--r--" a="20111026T025944Z" s="38584" n="aclocal.m4"/>
</dir>

論壇徽章:
1
天秤座
日期:2013-10-23 13:20:42
7 [報(bào)告]
發(fā)表于 2011-10-26 22:05 |只看該作者
不錯(cuò),順利解決,順利結(jié)貼,有始有終!

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2011-10-27 18:14 |只看該作者
我今天下午也遇到這個(gè)問題了,找了一下午,有幾個(gè)人遇到這個(gè)問題了,

http://hi.baidu.com/guangchun/bl ... 4bad3367096e19.html
這個(gè)方法沒能行,你的方法也沒能行,

我的方法是http://hi.baidu.com/haofefe/blog ... 4f7fccb48f31d6.html

在configure 加上 --without-zlib 可以編譯通過

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2012-01-17 14:29 |只看該作者
本帖最后由 flyer_2001 于 2012-01-17 14:29 編輯

mingw windows 環(huán)境下解決方法:
configure文件中行16341
    "libtool":C) 改成    "libtool空格":C)
問題解決

論壇徽章:
1
卯兔
日期:2013-12-09 08:47:37
10 [報(bào)告]
發(fā)表于 2012-08-01 00:33 |只看該作者
是,今天做的時(shí)候也出現(xiàn)這樣的問題,但是方法無效,引用了without之后,貌似可以編譯通過,但是目前還沒發(fā)現(xiàn)問題,不知道對(duì)后面有沒有影響回復(fù) 8# bingdong700


   
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP