[英]Where is the program or package gcjh?
I'm having trouble similar to Unable to build pdftk from source on fedora machine , but I'm having it on Ubuntu 13.04.我遇到了类似于Unable to build pdftk from source on fedora machine 的问题,但我在 Ubuntu 13.04 上遇到了它。
I've install gcc-gcj
, which provides gcj-4.8
.我已经安装了
gcc-gcj
,它提供了gcj-4.8
。
I opened Makefile.Debian
, and modified it as follows.我打开
Makefile.Debian
,修改如下。 So it finds the proper version of some of the GCC build tools:所以它找到了一些 GCC 构建工具的正确版本:
export VERSUFF ?=-4.6
Next, I tried to make
:接下来,我尝试
make
:
$ VERSUFF="-4.8"; make -f Makefile.Debian
make -f Makefile -iC /home/jwalton/pdftk-2.02-dist/pdftk/../java all
...
make[1]: Entering directory `/home/jwalton/pdftk-2.02-dist/java'
gcjh-4.8 -force --classpath="/usr/share/java/libgcj-4.8.jar:/home/jwalton/pdftk-2.02-dist/java:."
pdftk/com/lowagie/text/Anchor
/bin/sh: 1: gcjh-4.8: not found
...
gcjh-4.8 -force --classpath="/usr/share/java/libgcj-4.8.jar:/home/jwalton/pdftk-2.02-dist/java:."
pdftk/org/bouncycastle/crypto/engines/AESFastEngine
/bin/sh: 1: gcjh-4.8: not found
Though I have installed gcc-gcj
, it appears I don't have gcjh
:虽然我已经安装了
gcc-gcj
,但似乎我没有gcjh
:
$ find /usr/bin -name gcjh
$ find /usr/local/bin -name gcjh
$
There is no gcc-java
or gcc-gcjh
packages:没有
gcc-java
或gcc-gcjh
包:
$ apt-cache pkgnames | grep -i gcc-java
$ apt-cache pkgnames | grep -i gcc-gcjh
$ apt-cache pkgnames | grep -i gcjh
$
What is gcjh
, and where can I find it for Ubuntu 13?什么是
gcjh
,我在哪里可以找到它适用于 Ubuntu 13?
pdftk
or otherwise looking for gcj
pdftk
或以其他方式寻找gcj
The pdftk
package relied on gcj
, which is the GCC compiler for Java . pdftk
包依赖于gcj
,它是Java的GCC 编译器。 GCJ was officially removed from GCC in September 2016, and by extension, discontinued by the package repositories themselves for the various distros. GCJ 于 2016 年 9 月正式从 GCC 中删除,并且随后被各种发行版的软件包存储库本身停用。 As a result of this, many notable systems have officially dropped the no-longer-buildable
pdftk
package itself from their repositories, including Fedora , Ubuntu and Cygwin .因此,许多著名的系统已经正式从他们的存储库中删除了不再可构建的
pdftk
包本身,包括Fedora 、 Ubuntu和Cygwin 。
I gave up attempting to build pdftk
for my own Cygwin system because of the gcj
dependency and because I couldn't trust a tool from developers who insist on using dependencies that have been deprecated for 4 years now.由于
gcj
依赖,我放弃了为我自己的 Cygwin 系统构建pdftk
尝试,并且因为我不能相信开发人员的工具,他们坚持使用现已弃用 4 年的依赖项。 An email exchange here from 2014 - two years before GCJ was finally dropped by GCC - cites the developer of pdftk
as saying: 2014 年的电子邮件交流——在 GCJ 最终被 GCC 放弃两年前——引用了
pdftk
的开发者的话说:
Yes, I've heard that they're dropping support for libgcj.
是的,我听说他们正在放弃对 libgcj 的支持。 We have been working on a new pdftk that doesn't depend on libgcj, but it is currently pre-beta.
我们一直在开发一个不依赖于 libgcj 的新 pdftk,但它目前处于测试阶段。
However, it seem nothing came from this "pre-beta", since the last time pdftk
had an update at all was in 2013 .然而,似乎没有从这个“预测试”来了,自从上次
pdftk
有一个更新都在2013 。
I personally had two options available to me: to install the Windows binary of the pdftk
, which would result in an installation separate to the rest of my Cygwin environment, or to use a different but similar tool such as qpdf
.我个人有两种选择:安装
pdftk
的 Windows 二进制文件,这将导致安装与我的 Cygwin 环境的其余部分分开,或者使用不同但相似的工具,例如qpdf
。 Given what I now knew of the last time that pdftk
had been updated, I opted to use qpdf
and so far haven't been disappointed.鉴于我现在对
pdftk
上次更新的了解,我选择使用qpdf
并且到目前为止还没有失望。 The one criticism I have of qpdf
is that the website and documentation looks a lot less prettier compared to pdftk
s, but the tool itself appears to have all of the same functionality as pdftk
.我对
qpdf
的一个批评是,与pdftk
相比,网站和文档看起来不那么漂亮,但该工具本身似乎具有与pdftk
相同的所有功能。
qpdf
is also available and actively maintained on most other major Unix-like systems, including Ubuntu and Fedora . qpdf
在大多数其他主要的类 Unix 系统上也可用并积极维护,包括Ubuntu和Fedora 。
For anyone who's still desperate to compile pdftk
for a Linux distribution, for either workflow or legacy reasons, the above-linked Github thread has some instructions that seem like they still work for a few people.对于仍然不顾
pdftk
为 Linux 发行版编译pdftk
任何人,无论是出于工作流程还是遗留原因,上面链接的 Github 线程都有一些说明,它们似乎仍然适用于少数人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.