[Nix-dev] Installation of evince fails

Ilja Honkonen ilja.honkonen at helsinki.fi
Sat Mar 31 17:55:33 CEST 2012


Hello

Installation of evince fails currently for me with:

make[3]: Entering directory 
`/tmp/nix-build-vzi6j0cjl6p8j7a0vgm4b4n6lsfh68h4-evince-2.32.0.drv-0/evince-2.32.0/help'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory 
`/tmp/nix-build-vzi6j0cjl6p8j7a0vgm4b4n6lsfh68h4-evince-2.32.0.drv-0/evince-2.32.0/help'
building bg/bg.mo
msgfmt -o bg/bg.mo bg/bg.poo
...
building zh_CN/zh_CN.mo
msgfmt -o zh_CN/zh_CN.mo zh_CN/zh_CN.poo
building bg/evince.xml
if ! test -d bg/; then mkdir bg/; fii
if [ -f "C/evince.xml" ]; then d="../"; else 
d="/tmp/nix-build-vzi6j0cjl6p8j7a0vgm4b4n6lsfh68h4-evince-2.32.0.drv-0/evince-2.32.0/help/"; 
fi; \
mo="bg/bg.mo"; \
if [ -f "${mo}" ]; then mo="../${mo}"; else 
mo="/tmp/nix-build-vzi6j0cjl6p8j7a0vgm4b4n6lsfh68h4-evince-2.32.0.drv-0/evince-2.32.0/help/${mo}"; 
fi; \
(cd bg/ && \
   `which xml2po` -m docbook -e -t "${mo}" \
     "${d}C/evince.xml" > evince.xml.tmp && \
     cp evince.xml.tmp evince.xml && rm -f evince.xml.tmp))
Traceback (most recent call last):
   File 
"/home/ilja/Tiedostot/Ohjelmat/nix/store/03qsq8kw7jqa0x67sarnd1izi18hdsak-gnome-doc-utils-0.18.1/bin/.xml2po-wrapped", 
line 185, in <module>
     main(sys.argv[1:])
   File 
"/home/ilja/Tiedostot/Ohjelmat/nix/store/03qsq8kw7jqa0x67sarnd1izi18hdsak-gnome-doc-utils-0.18.1/bin/.xml2po-wrapped", 
line 88, in main
     from xml2po import Main
   File 
"/home/ilja/Tiedostot/Ohjelmat/nix/store/03qsq8kw7jqa0x67sarnd1izi18hdsak-gnome-doc-utils-0.18.1/lib/python2.7/site-packages/xml2po/__init__.py", 
line 27, in <module>
     import libxml2
ImportError: No module named libxml2
make[2]: *** [bg/evince.xml] Error 1
make[2]: Leaving directory 
`/tmp/nix-build-vzi6j0cjl6p8j7a0vgm4b4n6lsfh68h4-evince-2.32.0.drv-0/evince-2.32.0/help'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/tmp/nix-build-vzi6j0cjl6p8j7a0vgm4b4n6lsfh68h4-evince-2.32.0.drv-0/evince-2.32.0'
make: *** [all] Error 2
builder for 
`/home/ilja/Tiedostot/Ohjelmat/nix/store/vzi6j0cjl6p8j7a0vgm4b4n6lsfh68h4-evince-2.32.0.drv' 
failed with exit code 2
error: build of 
`/home/ilja/Tiedostot/Ohjelmat/nix/store/vzi6j0cjl6p8j7a0vgm4b4n6lsfh68h4-evince-2.32.0.drv' 
failed

I tried adding libxml2 to evince/default.nix and libxml2 to python/2.7 
but that didn't help. Also adding
     libxml2Python = buildInternalPythonModule {
       moduleName = "libxml2Python";
       internalName = "libxml2Python";
       deps = [ libxml2 ];
     };
to python/2.7 resulted in:
...
patching file Python/import.c
configuring
building
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
Traceback (most recent call last):
...

Is evince / python-libxml2 supposed to be installable currently or 
should I wait for https://github.com/chaoflow/nixpkgs to be merged to 
trunk or...?
Thanks

Ilja


More information about the nix-dev mailing list