无法在fedora机器上从源代码构建pdftk

时间:2013-05-28 08:45:34

标签: fedora pdftk

我正在尝试在fedora机器上从源代码构建pdftk。我解压缩了pdftk jar并尝试执行

make -f Makefile.Redhat

但是我的控制台上出现了以下错误。

 gcjh-4.7.2 -force --classpath="/usr/share/java/libgcj-4.7.2.jar:/home/tw1/pdftk-1.45-dist/java:." org/bouncycastle/asn1/ASN1ObjectParser
/bin/sh: gcjh-4.7.2: command not found
make[1]: [org/bouncycastle/asn1/ASN1ObjectParser.h] Error 127 (ignored)
gcj-4.7.2 -Wall -Wextra -O2 --encoding=UTF-8 --classpath="/usr/share/java/libgcj-4.7.2.jar:/home/tw1/pdftk-1.45-dist/java:." -C org/bouncycastle/asn1/IndefiniteLengthInputStream.java
/bin/sh: gcj-4.7.2: command not found
make[1]: [org/bouncycastle/asn1/IndefiniteLengthInputStream.class] Error 127 (ignored)
gcjh-4.7.2 -force --classpath="/usr/share/java/libgcj-4.7.2.jar:/home/tw1/pdftk-1.45-dist/java:." org/bouncycastle/asn1/IndefiniteLengthInputStream
/bin/sh: gcjh-4.7.2: command not found
make[1]: [org/bouncycastle/asn1/IndefiniteLengthInputStream.h] Error 127 (ignored)
fastjar-4.7.2 -cf java_lib.jar com/lowagie/*/*/*/*.class com/lowagie/*/*/*.class com/lowagie/*/*.class org/bouncycastle/*/*.class org/bouncycastle/*/*/*.class com/lowagie/text/pdf/fonts/Helvetica-Oblique.afm com/lowagie/text/pdf/fonts/Courier.afm com/lowagie/text/pdf/fonts/Helvetica-BoldOblique.afm com/lowagie/text/pdf/fonts/Courier-Bold.afm com/lowagie/text/pdf/fonts/Times-Roman.afm com/lowagie/text/pdf/fonts/Times-Bold.afm com/lowagie/text/pdf/fonts/Courier-Oblique.afm com/lowagie/text/pdf/fonts/Symbol.afm com/lowagie/text/pdf/fonts/Courier-BoldOblique.afm com/lowagie/text/pdf/fonts/Helvetica.afm com/lowagie/text/pdf/fonts/Helvetica-Bold.afm com/lowagie/text/pdf/fonts/Times-Italic.afm com/lowagie/text/pdf/fonts/ZapfDingbats.afm com/lowagie/text/pdf/fonts/Times-BoldItalic.afm
/bin/sh: fastjar-4.7.2: command not found
make[1]: [java_lib.o] Error 127 (ignored)
gcj-4.7.2 -Wall -Wextra -O2 --encoding=UTF-8 --classpath="/usr/share/java/libgcj-4.7.2.jar:/home/tw1/pdftk-1.45-dist/java:." -c java_lib.jar
/bin/sh: gcj-4.7.2: command not found
make[1]: [java_lib.o] Error 127 (ignored)
make[1]: Leaving directory `/home/tw1/pdftk-1.45-dist/java'
make: *** No rule to make target `../java/java_lib.o', needed by `pdftk.o'.  Stop.

从输出中我可以推断出它无法找到gcjh,gcj路径。我无法找出Makefile中应该提供的路径。

TOOLPATH=
export VERSUFF=

其他信息

  • gcc --version

    gcc(GCC)4.7.2 20120921(Red Hat 4.7.2-2) 版权所有(C)2012 Free Software Foundation,Inc。 这是免费软件;查看复制条件的来源。没有 保证;甚至不适用于适销性或特定用途的适用性。

  • 找到gcjh-4.7.2 |少

    没有

  • 找到gcj-4.7.2 |少

    /usr/lib64/gcj-4.7.2  /usr/lib64/gcj-4.7.2/classmap.db  /usr/lib64/gcj-4.7.2/classmap.db.d  /usr/lib64/gcj-4.7.2/libgjsmalsa.so  /usr/lib64/gcj-4.7.2/libgtkpeer.so  /usr/lib64/gcj-4.7.2/libjavamath.so  /usr/lib64/gcj-4.7.2/libjawt.so  /usr/lib64/gcj-4.7.2/libjvm.so  /usr/share/java/libgcj-4.7.2.jar

1 个答案:

答案 0 :(得分:0)

您确实安装了gcc-java软件包吗?这就是提供gcjgcjh可执行文件的内容(尽管不是gcj-4.7.2gcjh-4.7.2)。