![安装 qpdf 5.1.3 时遇到问题;无法推断标记配置](https://linux22.com/image/1130722/%E5%AE%89%E8%A3%85%20qpdf%205.1.3%20%E6%97%B6%E9%81%87%E5%88%B0%E9%97%AE%E9%A2%98%EF%BC%9B%E6%97%A0%E6%B3%95%E6%8E%A8%E6%96%AD%E6%A0%87%E8%AE%B0%E9%85%8D%E7%BD%AE.png)
我正在尝试安装 qpdf 5.1.3。默认的 Ubuntu 版本是 5.1.1。(我有 Ubuntu 14.04.3)
经过几次尝试(我按照这里写的做了:编译 qpdf 5.1.3 时遇到问题),输出的结尾告诉我:
config.status: libqpdf/qpdf/qpdf-config.h is unchanged
config.status: executing libtool commands
/bin/bash ./libtool --quiet --mode=compile g++ -Wold-style-cast -Wall -MD -MF libqpdf/build/BitStream.tdep -MP -Iinclude -Ilibqpdf -c libqpdf/BitStream.cc -o libqpdf/build/BitStream.o; sed -e 's/\.o:/.lo:/' < libqpdf/build /BitStream.tdep > libqpdf/build/BitStream.dep
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
/bin/bash: libqpdf/build/BitStream.tdep: No such file or directory
make: *** [libqpdf/build/BitStream.lo] Error 1
/bin/bash ./libtool --quiet --mode=compile g++ -Wold-style-cast -Wall -MD -MF libqpdf/build/BitStream.tdep -MP -Iinclude -Ilibqpdf -c libqpdf/BitStream.cc -o libqpdf/build/BitStream.o; sed -e 's/\.o:/.lo:/' < libqpdf/build/BitStream.tdep > libqpdf/build/BitStream.dep
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
/bin/bash: libqpdf/build/BitStream.tdep: No such file or directory
make: *** [libqpdf/build/BitStream.lo] Error 1
删除并重新导出档案后,运行 ./autogen.sh; ./configure; make
得到以下信息:
config.status: executing libtool commands
sed -e 's:@PACKAGE_VERSION@:5.1.3:g' \
-e 's:@docdir@:/usr/local/share/doc/qpdf:g' \
< manual/qpdf.1.in > doc/qpdf.1
sed -e 's:@PACKAGE_VERSION@:5.1.3:g' \
-e 's:@docdir@:/usr/local/share/doc/qpdf:g' \
< manual/fix-qdf.1.in > doc/fix-qdf.1
sed -e 's:@PACKAGE_VERSION@:5.1.3:g' \
-e 's:@docdir@:/usr/local/share/doc/qpdf:g' \
< manual/zlib-flate.1.in > doc/zlib-flate.1
/bin/bash ./libtool --quiet --mode=compile g++ -Wold-style-cast -Wall -MD -MF libqpdf/build/BitStream.tdep -MP -Iinclude -Ilibqpdf -c libqpdf/BitStream.cc -o libqpdf/build/BitStream.o; sed -e 's/\.o:/.lo:/' < libqpdf/build/BitStream.tdep > libqpdf/build/BitStream.dep
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
/bin/bash: libqpdf/build/BitStream.tdep: No such file or directory
make: *** [libqpdf/build/BitStream.lo] Error 1
并且运行g++ -Wold-style-cast -Wall -MD -MF libqpdf/build/BitStream.tdep -MP -Iinclude -Ilibqpdf -c libqpdf/BitStream.cc -o libqpdf/build/BitStream.o
没有输出
答案1
你的主要问题是,这./autogen.sh
有一些问题。对于感兴趣的读者,这里是聊天。
删除源文件夹
安装缺少的依赖项
./autogen.sh
sudo apt-get install autoconf
在源文件夹中运行以下命令。
./autogen.sh ./configure make sudo make install