4

我正在尝试从 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 --版本

    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

4

1 回答 1

1

你真的有gcc-java安装包吗?这就是提供gcjandgcjh可执行文件的原因(尽管不是gcj-4.7.2or gcjh-4.7.2)。

于 2013-05-28T15:06:31.280 回答