FreeBSD下的py-libxml2问题
-
我在freBSD下安装py-libxml2遇到一个无法解决的问题 make install clean 后出现这个错误
/usr/local/include/python2.5/longobject.h:43: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.5/longobject.h:44: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.5/longobject.h:45: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.5/longobject.h:46: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.5/longobject.h:47: warning: ISO C90 does not support 'long long'
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/python2.5 -I../include -I../include -I../python -I/usr/local/include -I/usr/local/include -O2 -fno-strict-aliasing -pipe -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 libxml2-py.lo -MD -MP -MF .deps/libxml2-py.Tpo -c libxml2-py.c -o libxml2-py.o >/dev/null 2>&1
mv -f .deps/libxml2-py.Tpo .deps/libxml2-py.Plo
/bin/sh ../libtool --tag=CC --mode=link cc -O2 -fno-strict-aliasing -pipe -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 -module -avoid-version -L/usr/local/lib -o libxml2mod.la -rpath /usr/local/lib/python2.5/site-packages libxml.lo types.lo libxml2-py.lo -lxml2
cc -shared .libs/libxml.o .libs/types.o .libs/libxml2-py.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/libxml2.so -Wl,-soname -Wl,libxml2mod.so -o .libs/libxml2mod.so
ar cru .libs/libxml2mod.a libxml.o types.o libxml2-py.o
ranlib .libs/libxml2mod.a
creating libxml2mod.la
(cd .libs && rm -f libxml2mod.la && ln -s ../libxml2mod.la libxml2mod.la)
cat ./libxml.py libxml2class.py > libxml2.py
gmake[1]: Leaving directory/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python' Making all in tests gmake[1]: Entering directory/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python/tests'
gmake[1]: Nothing to be done forall'. gmake[1]: Leaving directory/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python/tests'
===> Installing for py25-libxml2-2.7.3
===> py25-libxml2-2.7.3 depends on file: /usr/local/bin/python2.5 - found
===> py25-libxml2-2.7.3 depends on executable: pkg-config - found
===> Generating temporary packing list
===> Checking if textproc/py-libxml2 already installed
Making install in .
gmake[1]: Entering directory/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python' gmake[2]: Entering directory/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python'
gmake[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/doc/py-libxml2" || .././install-sh -c -d "/usr/local/share/doc/py-libxml2"
install -o root -g wheel -m 444 'TODO' '/usr/local/share/doc/py-libxml2/TODO'
test -z "/usr/local/lib/python2.5/site-packages" || .././install-sh -c -d "/usr/local/lib/python2.5/site-packages"
install -o root -g wheel -m 444 'drv_libxml2.py' '/usr/local/lib/python2.5/site-packages/drv_libxml2.py'
test -z "/usr/local/lib/python2.5/site-packages" || .././install-sh -c -d "/usr/local/lib/python2.5/site-packages"
install -o root -g wheel -m 444 'libxml2.py' '/usr/local/lib/python2.5/site-packages/libxml2.py'
test -z "/usr/local/lib/python2.5/site-packages" || .././install-sh -c -d "/usr/local/lib/python2.5/site-packages"
/bin/sh ../libtool --mode=install /usr/bin/install -c -o root -g wheel 'libxml2mod.la' '/usr/local/lib/python2.5/site-packages/libxml2mod.la'
/usr/bin/install -c -o root -g wheel .libs/libxml2mod.so /usr/local/lib/python2.5/site-packages/libxml2mod.so
/usr/bin/install -c -o root -g wheel .libs/libxml2mod.lai /usr/local/lib/python2.5/site-packages/libxml2mod.la
/usr/bin/install -c -o root -g wheel .libs/libxml2mod.a /usr/local/lib/python2.5/site-packages/libxml2mod.a
chmod 644 /usr/local/lib/python2.5/site-packages/libxml2mod.a
ranlib /usr/local/lib/python2.5/site-packages/libxml2mod.aLibraries have been installed in:
/usr/local/lib/python2.5/site-packages
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution - add LIBDIR to the `LD_RUN_PATH' environment variable
during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
gmake[2]: Leaving directory
/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python' gmake[1]: Leaving directory/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python'
Making install in tests
gmake[1]: Entering directory/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python/tests' gmake[2]: Entering directory/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python/tests'
gmake[2]: Nothing to be done forinstall-exec-am'. test -z "/usr/local/share/examples/py-libxml2" || ../.././install-sh -c -d "/usr/local/share/examples/py-libxml2" install -o root -g wheel -m 444 'build.py' '/usr/local/share/examples/py-libxml2/build.py' install -o root -g wheel -m 444 'attribs.py' '/usr/local/share/examples/py-libxml2/attribs.py' install -o root -g wheel -m 444 'tst.py' '/usr/local/share/examples/py-libxml2/tst.py' install -o root -g wheel -m 444 'tstxpath.py' '/usr/local/share/examples/py-libxml2/tstxpath.py' install -o root -g wheel -m 444 'xpathext.py' '/usr/local/share/examples/py-libxml2/xpathext.py' install -o root -g wheel -m 444 'push.py' '/usr/local/share/examples/py-libxml2/push.py' install -o root -g wheel -m 444 'pushSAX.py' '/usr/local/share/examples/py-libxml2/pushSAX.py' install -o root -g wheel -m 444 'pushSAXhtml.py' '/usr/local/share/examples/py-libxml2/pushSAXhtml.py' install -o root -g wheel -m 444 'error.py' '/usr/local/share/examples/py-libxml2/error.py' install -o root -g wheel -m 444 'serialize.py' '/usr/local/share/examples/py-libxml2/serialize.py' install -o root -g wheel -m 444 'validate.py' '/usr/local/share/examples/py-libxml2/validate.py' install -o root -g wheel -m 444 'tstURI.py' '/usr/local/share/examples/py-libxml2/tstURI.py' install -o root -g wheel -m 444 'cutnpaste.py' '/usr/local/share/examples/py-libxml2/cutnpaste.py' install -o root -g wheel -m 444 'xpathret.py' '/usr/local/share/examples/py-libxml2/xpathret.py' install -o root -g wheel -m 444 'xpath.py' '/usr/local/share/examples/py-libxml2/xpath.py' install -o root -g wheel -m 444 'outbuf.py' '/usr/local/share/examples/py-libxml2/outbuf.py' install -o root -g wheel -m 444 'inbuf.py' '/usr/local/share/examples/py-libxml2/inbuf.py' install -o root -g wheel -m 444 'resolver.py' '/usr/local/share/examples/py-libxml2/resolver.py' install -o root -g wheel -m 444 'regexp.py' '/usr/local/share/examples/py-libxml2/regexp.py' install -o root -g wheel -m 444 'reader.py' '/usr/local/share/examples/py-libxml2/reader.py' install -o root -g wheel -m 444 'reader2.py' '/usr/local/share/examples/py-libxml2/reader2.py' install -o root -g wheel -m 444 'reader3.py' '/usr/local/share/examples/py-libxml2/reader3.py' install -o root -g wheel -m 444 'reader4.py' '/usr/local/share/examples/py-libxml2/reader4.py' install -o root -g wheel -m 444 'reader5.py' '/usr/local/share/examples/py-libxml2/reader5.py' install -o root -g wheel -m 444 'reader6.py' '/usr/local/share/examples/py-libxml2/reader6.py' install -o root -g wheel -m 444 'reader7.py' '/usr/local/share/examples/py-libxml2/reader7.py' install -o root -g wheel -m 444 'reader8.py' '/usr/local/share/examples/py-libxml2/reader8.py' install -o root -g wheel -m 444 'readernext.py' '/usr/local/share/examples/py-libxml2/readernext.py' install -o root -g wheel -m 444 'walker.py' '/usr/local/share/examples/py-libxml2/walker.py' install -o root -g wheel -m 444 'nsdel.py' '/usr/local/share/examples/py-libxml2/nsdel.py' install -o root -g wheel -m 444 'ctxterror.py' '/usr/local/share/examples/py-libxml2/ctxterror.py' install -o root -g wheel -m 444 'readererr.py' '/usr/local/share/examples/py-libxml2/readererr.py' install -o root -g wheel -m 444 'relaxng.py' '/usr/local/share/examples/py-libxml2/relaxng.py' install -o root -g wheel -m 444 'schema.py' '/usr/local/share/examples/py-libxml2/schema.py' install -o root -g wheel -m 444 'thread2.py' '/usr/local/share/examples/py-libxml2/thread2.py' install -o root -g wheel -m 444 'sync.py' '/usr/local/share/examples/py-libxml2/sync.py' install -o root -g wheel -m 444 'tstLastError.py' '/usr/local/share/examples/py-libxml2/tstLastError.py' install -o root -g wheel -m 444 'indexes.py' '/usr/local/share/examples/py-libxml2/indexes.py' install -o root -g wheel -m 444 'dtdvalid.py' '/usr/local/share/examples/py-libxml2/dtdvalid.py' install -o root -g wheel -m 444 'tstmem.py' '/usr/local/share/examples/py-libxml2/tstmem.py' install -o root -g wheel -m 444 'validDTD.py' '/usr/local/share/examples/py-libxml2/validDTD.py' install -o root -g wheel -m 444 'validSchemas.py' '/usr/local/share/examples/py-libxml2/validSchemas.py' install -o root -g wheel -m 444 'validRNG.py' '/usr/local/share/examples/py-libxml2/validRNG.py' install -o root -g wheel -m 444 'compareNodes.py' '/usr/local/share/examples/py-libxml2/compareNodes.py' install -o root -g wheel -m 444 'xpathns.py' '/usr/local/share/examples/py-libxml2/xpathns.py' install -o root -g wheel -m 444 'xpathleak.py' '/usr/local/share/examples/py-libxml2/xpathleak.py' install -o root -g wheel -m 444 'tst.xml' '/usr/local/share/examples/py-libxml2/tst.xml' install -o root -g wheel -m 444 'valid.xml' '/usr/local/share/examples/py-libxml2/valid.xml' install -o root -g wheel -m 444 'invalid.xml' '/usr/local/share/examples/py-libxml2/invalid.xml' install -o root -g wheel -m 444 'test.dtd' '/usr/local/share/examples/py-libxml2/test.dtd' gmake[2]: Leaving directory/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python/tests'
gmake[1]: Leaving directory `/usr/ports/textproc/py-libxml2/work/libxml2-2.7.3/python/tests'
Listing /usr/local/lib/python2.5/site-packages ...
Compiling /usr/local/lib/python2.5/site-packages/drv_libxml2.py ...
Compiling /usr/local/lib/python2.5/site-packages/libxml2.py ...
Compiling /usr/local/lib/python2.5/site-packages/pyparsing_py3.py ...
/usr/local/lib/python2.5/site-packages/pyparsing_py3.py:2470: Warning: 'as' will become a reserved keyword in Python 2.6
File "/usr/local/lib/python2.5/site-packages/pyparsing_py3.py", line 2470
except ParseException as err:
^
SyntaxError: invalid syntax
*** Error code 1
Stop in /usr/ports/textproc/py-libxml2.[[i] 本帖最后由 simon 于 2009-5-27 15:26 编辑 [/i]]
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
-
不很明白,瞎猜猜。
pyparsing_py3.py是pyparsing的最新版1.5.2版引入以支持python3.x的模块。试试将其从site-packages中移除,或将pyparsing降级到1.5.1,试试。
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login