Yubico / yubikey-personalization

YubiKey Personalization cross-platform library and tool
https://developers.yubico.com/yubikey-personalization/
BSD 2-Clause "Simplified" License
299 stars 82 forks source link

build-aux/missing a2x ... returned non-zero exit status 127 #88

Closed alistairewj closed 7 years ago

alistairewj commented 7 years ago

Building on Ubuntu 16.04, installing all the dependencies, and running make check install gave me this error:

Making check in ykcore
make[1]: Entering directory '/home/alistairewj/git/yubikey-personalization/ykcore'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/alistairewj/git/yubikey-personalization/ykcore'
Making check in .
make[1]: Entering directory '/home/alistairewj/git/yubikey-personalization'
  CC       ykpers-version.lo
  CCLD     libykpers-1.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       ykpers-args.lo
  CCLD     libykpers_args.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CCLD     ykpersonalize
  CC       ykchalresp.o
  CCLD     ykchalresp
  CC       ykinfo.o
  CCLD     ykinfo
/bin/bash /home/alistairewj/git/yubikey-personalization/build-aux/missing a2x -L --format=manpage -a revdate="Version 1.18.0" ykpersonalize.1.adoc
a2x: ERROR: "xsltproc"  --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0  "/usr/local/etc/asciidoc/docbook-xsl/manpage.xsl" "/home/alistairewj/git/yubikey-personalization/ykpersonalize.1.xml" returned non-zero exit status 127
Makefile:1368: recipe for target 'ykpersonalize.1' failed
make[1]: *** [ykpersonalize.1] Error 1
make[1]: Leaving directory '/home/alistairewj/git/yubikey-personalization'
Makefile:930: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1

The suggested fix I found that worked was to run (sudo apt-get install libxml2-utils xsltproc), though I already had libxml2-utils installed at the time so I was only missing xsltproc. Still, thought you might like to add it to the README.

klali commented 7 years ago

So I'd say that this typically happens if you install asciidoc with --no-install-recommends the packages you want then are docbook-xsl xsltproc libxml2-utils I'm unsure of how common it is to not install the recommended packages and if we should add those to the list of dependencies.

alistairewj commented 7 years ago

Hm, maybe I installed it in an unusual manner? I did this exactly:

tar -xzf asciidoc-8.6.9.tar.gz
cd asciidoc-8.6.9/
./configure
sudo make install
sudo make docs
klali commented 7 years ago

Ah.. asciidoc built from source might not make this obvious.

thorduri commented 7 years ago

In general, Yubico projects depend on their dependencies being installed via the appropriate package manager for each distribution -- it would be prohibitively time consuming to support this "expert" mode, and would further confuse the documentation (which, granted needs work) for the simple case.