背景

            源码编译flex的时候出错:

make[1]: Entering directory '/home/dong/3thrdparty/flex/flex-2.6.0/doc'
TEXINPUTS="../build-aux:$TEXINPUTS" \
MAKEINFO='/bin/sh /home/dong/3thrdparty/flex/flex-2.6.0/build-aux/missing makeinfo   -I .' \
texi2dvi --pdf --batch  --build-dir=flex.t2p -o flex.pdf  \
flex.texi
You don't have a working TeX binary (tex) installed anywhere in
your PATH, and texi2dvi cannot proceed without one.  If you want to use
this script, you'll need to install TeX (if you don't have it) or change
your PATH or TEX environment variable (if you do).  See the --help
output for more details.

For information about obtaining TeX, please see http://tug.org/texlive,
or do a web search for TeX and your operating system or distro.
make[1]: *** [Makefile:447: flex.pdf] Error 1
make[1]: Leaving directory '/home/dong/3thrdparty/flex/flex-2.6.0/doc'
make: *** [Makefile:530: all-recursive] Error 1


解决

yum install docbool-utils-pdf.noarch