2013-02-18 5 views
1

jhbuild을 통해 yelp-xsl (libyelp 및 yelp에서 사용되는 코어 XSLT 스타일 시트)을 통해 컴파일하려고합니다.jhbuild가 libxslt 및 libxml2 종속성에 대해 yelp-xsl을 빌드하지 못했습니다.

저는 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

은 IRC에서 # 그놈 - 해커의 요구를 .gnome.org. 어떤 사람들은 오류가 이전에 jhbuild 부트 스트랩을 사용하여 생성되었다고합니다. 자신의 pkg-config가 설치되어 multiarch 우분투 디렉토리에 대해 알지 못하기 때문에 충돌이 발생할 수 있습니다.

$ pkg-config --modversion libxml-2.0 libxslt 

보고서 2.9.01.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

또 다른 불쾌한 해결책은 remove/opt/gnome/bin/pkg-config이므로 jhbuild는 기본 시스템 pkg-config를 사용합니다. 그것은 우분투에서 작동합니다 12.10 – albfan

+0

나는 그 속임수도 동의합니다. – shakaran