免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4435 | 回复: 4
打印 上一主题 下一主题

[FreeBSD] [求助]安装“/usr/ports/textproc/py-libxml2/work/libxml2-2.7.8/python”出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-08 11:47 |只看该作者 |正序浏览
[root@www /usr/ports/textproc/py-libxml2/work/libxml2-2.7.8/python]# make install clean
Making install in .
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/python2.6  -I../include   -I../include  -I../python  -I/usr/local/include -I/usr/local/include  -O2 -pipe -fno-strict-aliasing -std=gnu89 -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 libxml.lo -MD -MP -MF .deps/libxml.Tpo -c -o libxml.lo `test -f './libxml.c' || echo './'`./libxml.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/python2.6 -I../include -I../include -I../python -I/usr/local/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -std=gnu89 -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 libxml.lo -MD -MP -MF .deps/libxml.Tpo -c ./libxml.c  -fPIC -DPIC -o .libs/libxml.o
In file included from /usr/local/include/python2.6/Python.h:86,
                 from ./libxml.c:14:
/usr/local/include/python2.6/intobject.h:45: warning: ISO C90 does not support 'long long'
In file included from /usr/local/include/python2.6/Python.h:88,
                 from ./libxml.c:14:
/usr/local/include/python2.6/longobject.h:47: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.6/longobject.h:48: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.6/longobject.h:49: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.6/longobject.h:50: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.6/longobject.h:51: warning: ISO C90 does not support 'long long'
In file included from ./libxml.c:14:
/usr/local/include/python2.6/Python.h:163:17: error: pth.h: No such file or directory
./libxml.c: In function 'libxml_xmlValidCtxtGenericErrorFuncHandler':
./libxml.c:1748: warning: unused parameter 'severity'
./libxml.c: In function 'libxml_xmlValidCtxtGenericWarningFuncHandler':
./libxml.c:1775: warning: unused parameter 'severity'
./libxml.c: At top level:
./libxml.c:2678: warning: no previous prototype for 'libxml_xmlNodeRemoveNsDef'
./libxml.c: In function 'libxml_serializeNode':
./libxml.c:2765: warning: unused variable 'len'
*** Error code 1

Stop in /usr/ports/textproc/py-libxml2/work/libxml2-2.7.8/python.
*** Error code 1

Stop in /usr/ports/textproc/py-libxml2/work/libxml2-2.7.8/python.


请问要怎样搞才可以通过安装?Thank you

论坛徽章:
0
5 [报告]
发表于 2011-03-09 09:33 |只看该作者
本帖最后由 Dboykey 于 2011-03-09 10:13 编辑

谢谢大大!果然升级了后就通过了!

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
4 [报告]
发表于 2011-03-09 09:12 |只看该作者
cd /usr/ports/textproc/py-libxml2
make clean
make install clean

如果还不行,升级一下ports再重新做吧。

论坛徽章:
0
3 [报告]
发表于 2011-03-08 18:23 |只看该作者
谢谢楼上的大大的回复,用大大的指令后出现了这样的情况,在此求教

[root@www /home/dboykey]# cd  /usr/ports/textproc/py-libxml2 && make install cle                                                                                                  an
===>  Building for py26-libxml2-2.7.8_1
Making all in .
gmake[1]: Entering directory `/usr/ports/textproc/py-libxml2/work/libxml2-2.7.8/                                                                                                  python'
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr                                                                                                  /local/include/python2.6 -I../include -I../include -I../python  -I/usr/local/inc                                                                                                  lude -I/usr/local/include  -O2 -pipe -fno-strict-aliasing -std=gnu89 -pedantic -                                                                                                  W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wfo                                                                                                  rmat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -W                                                                                                  cast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prot                                                                                                  otypes -Wnested-externs -Winline -Wredundant-decls -MT libxml.lo -MD -MP -MF .de                                                                                                  ps/libxml.Tpo -c -o libxml.lo `test -f './libxml.c' || echo './'`./libxml.c
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr                                                                                                  /local/include/python2.6 -I../include -I../include -I../python  -I/usr/local/inc                                                                                                  lude -I/usr/local/include  -O2 -pipe -fno-strict-aliasing -std=gnu89 -pedantic -                                                                                                  W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wfo                                                                                                  rmat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -W                                                                                                  cast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prot                                                                                                  otypes -Wnested-externs -Winline -Wredundant-decls -MT types.lo -MD -MP -MF .dep                                                                                                  s/types.Tpo -c -o types.lo `test -f './types.c' || echo './'`./types.c
/bin/sh ../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/                                                                                                  local/include/python2.6 -I../include -I../include -I../python  -I/usr/local/incl                                                                                                  ude -I/usr/local/include  -O2 -pipe -fno-strict-aliasing -std=gnu89 -pedantic -W                                                                                                   -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wfor                                                                                                  mat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wc                                                                                                  ast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-proto                                                                                                  types -Wnested-externs -Winline -Wredundant-decls -MT libxml2-py.lo -MD -MP -MF                                                                                                   .deps/libxml2-py.Tpo -c -o libxml2-py.lo libxml2-py.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/python2.6 -I                                                                                                  ../include -I../include -I../python -I/usr/local/include -I/usr/local/include -O                                                                                                  2 -pipe -fno-strict-aliasing -std=gnu89 -pedantic -W -Wformat -Wunused -Wimplici                                                                                                  t -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wunin                                                                                                  itialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -W                                                                                                  aggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winl                                                                                                  ine -Wredundant-decls -MT libxml2-py.lo -MD -MP -MF .deps/libxml2-py.Tpo -c libx                                                                                                  ml2-py.c  -fPIC -DPIC -o .libs/libxml2-py.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/python2.6 -I                                                                                                  ../include -I../include -I../python -I/usr/local/include -I/usr/local/include -O                                                                                                  2 -pipe -fno-strict-aliasing -std=gnu89 -pedantic -W -Wformat -Wunused -Wimplici                                                                                                  t -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wunin                                                                                                  itialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -W                                                                                                  aggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winl                                                                                                  ine -Wredundant-decls -MT libxml.lo -MD -MP -MF .deps/libxml.Tpo -c ./libxml.c                                                                                                    -fPIC -DPIC -o .libs/libxml.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/python2.6 -I                                                                                                  ../include -I../include -I../python -I/usr/local/include -I/usr/local/include -O                                                                                                  2 -pipe -fno-strict-aliasing -std=gnu89 -pedantic -W -Wformat -Wunused -Wimplici                                                                                                  t -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wunin                                                                                                  itialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -W                                                                                                  aggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winl                                                                                                  ine -Wredundant-decls -MT types.lo -MD -MP -MF .deps/types.Tpo -c ./types.c  -fP                                                                                                  IC -DPIC -o .libs/types.o
In file included from /usr/local/include/python2.6/Python.h:86,
                 from ./libxml_wrap.h:1,
                 from ./types.c:9:
/usr/local/include/python2.6/intobject.h:45: warning: ISO C90 does not support '                                                                                                  long long'In file included from /usr/local/include/python2.6/Python.h:86,
                 from ./libxml.c:14:
/usr/local/include/python2.6/intobject.h:45: warning: ISO C90 does not support '                                                                                                  long long'

In file included from /usr/local/include/python2.6/Python.h:86,
                 from libxml2-py.c:3:
/usr/local/include/python2.6/intobject.h:45: warning: ISO C90 does not support '                                                                                                  long long'
In file included from /usr/local/include/python2.6/Python.h:88,
                 from ./libxml_wrap.h:1,
                 from ./types.c:9:
/usr/local/include/python2.6/longobject.h:47: warning: ISO C90 does not support                                                                                                   'long long'In file included from /usr/local/include/python2.6/Python.h:88,
                 from ./libxml.c:14:
/usr/local/include/python2.6/longobject.h:47: warning: ISO C90 does not support                                                                                                   'long long'
In file included from /usr/local/include/python2.6/Python.h:88,
                 from libxml2-py.c:3:
/usr/local/include/python2.6/longobject.h:47: warning: ISO C90 does not support                                                                                                   'long long'

/usr/local/include/python2.6/longobject.h:48: warning: ISO C90 does not support                                                                                                   'long long'
/usr/local/include/python2.6/longobject.h:48: warning: ISO C90 does not support                                                                                                   'long long'
/usr/local/include/python2.6/longobject.h:48: warning: ISO C90 does not support                                                                                                   'long long'/usr/local/include/python2.6/longobject.h:49: warning: ISO C90 does n                                                                                                  ot support 'long long'/usr/local/include/python2.6/longobject.h:49: warning: ISO                                                                                                   C90 does not support 'long long'


/usr/local/include/python2.6/longobject.h:50: warning: ISO C90 does not support                                                                                                   'long long'/usr/local/include/python2.6/longobject.h:50: warning: ISO C90 does n                                                                                                  ot support 'long long'/usr/local/include/python2.6/longobject.h:49: warning: ISO                                                                                                   C90 does not support 'long long'


/usr/local/include/python2.6/longobject.h:51: warning: ISO C90 does not support                                                                                                   'long long'/usr/local/include/python2.6/longobject.h:50: warning: ISO C90 does n                                                                                                  ot support 'long long'

/usr/local/include/python2.6/longobject.h:51: warning: ISO C90 does not support                                                                                                   'long long'
/usr/local/include/python2.6/longobject.h:51: warning: ISO C90 does not support                                                                                                   'long long'
In file included from ./libxml_wrap.h:1In file included from ./libxml.c:14In fil                                                                                                  e included from libxml2-py.c:3:
:
/usr/local/include/python2.6/Python.h:163:17:/usr/local/include/python2.6/Python                                                                                                  .h:163:17:  error: error: pth.h: No such file or directory,
                 from ./types.c:9pth.h: No such file or directory
:

/usr/local/include/python2.6/Python.h:163:17: error: pth.h: No such file or dire                                                                                                  ctory
./libxml.c: In function 'libxml_xmlValidCtxtGenericErrorFuncHandler':
./libxml.c:1748: warning: unused parameter 'severity'
./libxml.c: In function 'libxml_xmlValidCtxtGenericWarningFuncHandler':
./libxml.c:1775: warning: unused parameter 'severity'
./libxml.c: At top level:
./libxml.c:2678: warning: no previous prototype for 'libxml_xmlNodeRemoveNsDef'
./libxml.c: In function 'libxml_serializeNode':
./libxml.c:2765: warning: unused variable 'len'
gmake[1]: *** [types.lo] ▒▒▒▒ 1
gmake[1]: *** ▒▒▒ڵȴ▒δ▒▒ɵ▒▒▒▒▒....
gmake[1]: *** [libxml.lo] ▒▒▒▒ 1
gmake[1]: *** [libxml2-py.lo] ▒▒▒▒ 1
gmake[1]: Leaving directory `/usr/ports/textproc/py-libxml2/work/libxml2-2.7.8/p                                                                                                  ython'
gmake: *** [all-recursive] ▒▒▒▒ 1
*** Error code 1

Stop in /usr/ports/textproc/py-libxml2.

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
2 [报告]
发表于 2011-03-08 16:17 |只看该作者
cd  /usr/ports/textproc/py-libxml2 && make install clean

楼主的目录进错了,把ports系统跨过去了,变成了源代码编译。
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP