Форум сайта python.su
Мне понадобилось установить py-libxslt на freeBSD , не стал долго мучится и начал установку из портов в результате получил:
===> Installing for py25-libxslt-1.1.24_2
===> py25-libxslt-1.1.24_2 depends on file: /usr/local/bin/python2.5 - found
===> py25-libxslt-1.1.24_2 depends on executable: pkg-config - found
===> py25-libxslt-1.1.24_2 depends on shared library: xml2.5 - found
===> py25-libxslt-1.1.24_2 depends on shared library: xslt.2 - found
===> Generating temporary packing list
===> Checking if textproc/py-libxslt already installed
Making install in .
gmake[1]: Entering directory `/usr/ports/textproc/py-libxslt/work/libxslt-1.1.24/python'
gmake[2]: Entering directory `/usr/ports/textproc/py-libxslt/work/libxslt-1.1.24/python'
gmake[2]: Цель `install-exec-am' не требует выполнения команд.
/bin/sh /usr/ports/textproc/py-libxslt/work/libxslt-1.1.24/install-sh -d /usr/local/lib/python2.5/site-packages
/usr/bin/install -c -o root -g wheel -m 0644 libxslt.py /usr/local/lib/python2.5/site-packages
/bin/sh /usr/ports/textproc/py-libxslt/work/libxslt-1.1.24/install-sh -d /usr/local/share/doc/py-libxslt
test -z "/usr/local/lib/python2.5/site-packages" || .././install-sh -c -d "/usr/local/lib/python2.5/site-packages"
/bin/sh /usr/local/bin/libtool --mode=install /usr/bin/install -c -o root -g wheel 'libxsltmod.la' '/usr/local/lib/python2.5/site-packages/libxsltmod.la'
/usr/bin/install -c -o root -g wheel .libs/libxsltmod.so /usr/local/lib/python2.5/site-packages/libxsltmod.so
/usr/bin/install -c -o root -g wheel .libs/libxsltmod.lai /usr/local/lib/python2.5/site-packages/libxsltmod.la
/usr/bin/install -c -o root -g wheel .libs/libxsltmod.a /usr/local/lib/python2.5/site-packages/libxsltmod.a
chmod 644 /usr/local/lib/python2.5/site-packages/libxsltmod.a
ranlib /usr/local/lib/python2.5/site-packages/libxsltmod.a
----------------------------------------------------------------------
Libraries 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-libxslt/work/libxslt-1.1.24/python'
gmake[1]: Leaving directory `/usr/ports/textproc/py-libxslt/work/libxslt-1.1.24/python'
Making install in tests
gmake[1]: Entering directory `/usr/ports/textproc/py-libxslt/work/libxslt-1.1.24/python/tests'
gmake[2]: Entering directory `/usr/ports/textproc/py-libxslt/work/libxslt-1.1.24/python/tests'
gmake[2]: Цель `install-exec-am' не требует выполнения команд.
/bin/sh /usr/ports/textproc/py-libxslt/work/libxslt-1.1.24/install-sh -d /usr/local/share/examples/py-libxslt
(for test in basic.py exslt.py extelem.py extfunc.py test.xml test.xsl pyxsltproc.py; \
do /usr/bin/install -c -o root -g wheel -m 0644 ./$test /usr/local/share/examples/py-libxslt ; done)
gmake[2]: Leaving directory `/usr/ports/textproc/py-libxslt/work/libxslt-1.1.24/python/tests'
gmake[1]: Leaving directory `/usr/ports/textproc/py-libxslt/work/libxslt-1.1.24/python/tests'
Listing /usr/local/lib/python2.5/site-packages ...
Compiling /usr/local/lib/python2.5/site-packages/libxslt.py ...
Compiling /usr/local/lib/python2.5/site-packages/pyparsing_py.py ...
File "/usr/local/lib/python2.5/site-packages/pyparsing_py.py", line 2470
except ParseException as err:
^
SyntaxError: invalid syntax
*** Error code 1
Stop in /usr/ports/textproc/py-libxslt.
Офлайн
значит сей порт под python2.6, если в эксепшине используется as
по ссылке написано тоже самое;)
Отредактировано (Сен. 21, 2009 16:59:04)
Офлайн
Исходя из этого мне придётся или обновить или поставить параллельно 2,6?
Офлайн
параллельно,или найди версию под 2.5
Офлайн
ладно на днях по пробую
Офлайн