安装 qpdf 5.1.3 时遇到问题;无法推断标记配置

安装 qpdf 5.1.3 时遇到问题;无法推断标记配置

我正在尝试安装 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有一些问题。对于感兴趣的读者,这里是聊天。

  1. 删除源文件夹

  2. 安装缺少的依赖项./autogen.sh

    sudo apt-get install autoconf
    
  3. 在源文件夹中运行以下命令。

    ./autogen.sh
    ./configure
    make
    sudo make install
    

相关内容