2013-02-18 2 views
1

Я пытаюсь скомпилировать через jhbuild yelp-xsl (Основные стили XSLT, используемые libyelp и yelp).jhbuild не удалось создать yelp-xsl для зависимостей libxslt и libxml2

Я использую Ubuntu Raring 13.04, полностью обновленный с сегодняшнего дня.

Я all the dependencies рекомендовал for Ubuntu установленные и связанные пакеты разработки также:

$ dpkg -l libxslt* | grep dev; dpkg -l libxml2* | grep dev 
un libxslt-dev         <none>              (no description available) 
ii libxslt1-dev         1.1.27-1ubuntu1         i386   XSLT 1.0 processing library - development kit 
ii libxml2-dev:i386        2.9.0+dfsg1-4ubuntu1       i386   Development files for the GNOME XML library 

Но запуск компиляции я получаю отказавшего результат:

$ jhbuild build yelp-xsl 
*** Verificando itstool *** [1/2] 
*** Omitiendo itstool (paquete y dependencias no actualizados) *** [1/2] 
*** Verificando yelp-xsl *** [2/2] 
git remote set-url origin git://git.gnome.org/yelp-xsl 
git remote update origin 
Fetching origin 
git pull --rebase 
Current branch master is up to date. 
*** Configurando yelp-xsl *** [2/2] 
./autogen.sh --prefix /opt/gnome --libdir '/opt/gnome/lib' --disable-static --disable-gtk-doc 
autoreconf: Entering directory `.' 
autoreconf: configure.ac: not using Gettext 
autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS} 
autoreconf: configure.ac: tracing 
autoreconf: configure.ac: not using Libtool 
autoreconf: running: /opt/gnome/bin/autoconf --force 
autoreconf: configure.ac: not using Autoheader 
autoreconf: running: automake --add-missing --copy --force-missing 
doc/yelp-xsl/Makefile.am:12: filter-out %db2html-suppressed.xsl,      \ 
doc/yelp-xsl/Makefile.am:12: $(sort $(patsubst ./%, %,          \ 
doc/yelp-xsl/Makefile.am:12:  $(foreach dir,$(xsldoc_dirs: non-POSIX variable name 
doc/yelp-xsl/Makefile.am:12: (probably a GNU make extension) 
doc/yelp-xsl/Makefile.am:12: wildcard $(dir: non-POSIX variable name 
doc/yelp-xsl/Makefile.am:12: (probably a GNU make extension) 
doc/yelp-xsl/Makefile.am:15: sort $(foreach xsl,$(xsldoc_xsls: non-POSIX variable name 
doc/yelp-xsl/Makefile.am:15: (probably a GNU make extension) 
doc/yelp-xsl/Makefile.am:15: basename $(notdir $(xsl: non-POSIX variable name 
doc/yelp-xsl/Makefile.am:15: (probably a GNU make extension) 
doc/yelp-xsl/Makefile.am:16: patsubst %, C/%.page, $(xsldoc_base: non-POSIX variable name 
doc/yelp-xsl/Makefile.am:16: (probably a GNU make extension) 
doc/yelp-xsl/Makefile.am:24: filter %/$(basename $(notdir [email protected]: non-POSIX variable name 
doc/yelp-xsl/Makefile.am:24: (probably a GNU make extension) 
doc/yelp-xsl/Makefile.am:36: wildcard C/*.page: non-POSIX variable name 
doc/yelp-xsl/Makefile.am:36: (probably a GNU make extension) 
xslt/docbook/html/Makefile.am:30: wildcard db*.xsl: non-POSIX variable name 
xslt/docbook/html/Makefile.am:30: (probably a GNU make extension) 
autoreconf: Leaving directory `.' 
configure: WARNING: unrecognized options: --disable-static, --disable-gtk-doc 
checking for a BSD-compatible install... /home/shakaran/.local/bin/install-check 
checking whether build environment is sane... yes 
checking for a thread-safe mkdir -p... /bin/mkdir -p 
checking for gawk... gawk 
checking whether make sets $(MAKE)... yes 
checking for gawk... (cached) gawk 
checking for itstool... itstool 
checking for pkg-config... /opt/gnome/bin/pkg-config 
checking pkg-config is at least version 0.9.0... yes 
checking for YELP_XSL... no 
configure: error: Package requirements (
     libxml-2.0 >= 2.6.12 
     libxslt >= 1.1.8 
) were not met: 

No package 'libxml-2.0' found 
No package 'libxslt' found 

Consider adjusting the PKG_CONFIG_PATH environment variable if you 
installed software in a non-standard prefix. 

Alternatively, you may set the environment variables YELP_XSL_CFLAGS 
and YELP_XSL_LIBS to avoid the need to call pkg-config. 
See the pkg-config man page for more details. 
*** Error durante la fase configure de yelp-xsl: ########## Error de ejecución ./autogen.sh --prefix /opt/gnome --libdir '/opt/gnome/lib' --disable-static --disable-gtk-doc *** [2/2] 

ответ

1

Запрашиваемая в # Gnome-хакеров в ИРЦ .gnome.org. Некоторые люди говорят мне, что ошибка была произведена с использованием ранее jhbuild bootstrap. Это может создавать конфликты, потому что есть вероятность того, что будет установлен собственный pkg-config, что он не знает о многоархивных каталогах ubuntu.

Так работает:

$ pkg-config --modversion libxml-2.0 libxslt 

Отчеты 2.9.0 и 1.1.27 версии, но работает:

$ jhbuild run pkg-config --modversion libxml-2.0 libxslt 
Package libxml-2.0 was not found in the pkg-config search path. 
Perhaps you should add the directory containing `libxml-2.0.pc' 
to the PKG_CONFIG_PATH environment variable 
No package 'libxml-2.0' found 
Package libxslt was not found in the pkg-config search path. 
Perhaps you should add the directory containing `libxslt.pc' 
to the PKG_CONFIG_PATH environment variable 
No package 'libxslt' found 

Единственное решение для исправления этой проблемы является протирать полно /opt/gnome/ и повторите попытку. Тогда все работает нормально.

+0

Другим неприятным решением является удаление/opt/gnome/bin/pkg-config, поэтому jhbuild будет использовать систему pkg-config по умолчанию. Это работает на ubuntu 12.10 – albfan

+0

Я согласен, что трюк тоже работает. – shakaran

0

Возможно, это потому, что у вас не было установленной версии libxml2 и libxslt для разработчиков?

http://tara24.de/fix-configure-error-package-requirements-libxslt-met/

Попробуйте это:

$ sudo apt-get install libxml2-dev libxslt1-dev 

, чтобы увидеть, если ваша проблема решена?

Смежные вопросы