OS X 10.11 上的 PDFtk 服务器 [英] PDFtk Server on OS X 10.11

查看:37
本文介绍了OS X 10.11 上的 PDFtk 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 OSX pre 10.11 上使用 PDFTK Server 一年多了,在命令行上运行命令没有任何问题.

安装 OSX 10.11 测试版后,我无法再在命令行上运行任何 PDFTK 服务器命令.它不会抛出任何错误,我尝试执行的所有命令都无限期地挂起.

我一如既往地通过从 PDFTK 服务器网站下载的 pkg 进行安装:

<块引用>

以上快照来自尝试运行当前的 pdftk 二进制文件我们的网站在 OS X 10.11 上.上面提到的 libgcj 库带有pdftk,其他是 OS X 库.

正如我所说,我刚刚安装了昨天发布的 Xcode 7.0.1在应用商店.我现在将尝试使用这些工具来构建pdftk.

<小时>

更新 3:

MacPorts 正在解决 PDFtk 的构建问题,这是一个 该线程的更新(注意:这与 PDFtk Labs 无关):

<块引用>

这是由于在10.11中使用Apple重新编译libunwindClang 7 产生了新的有效优化(根据 Apple 的说法)解决 FSF boehm-gc 中的一个未知错误.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66848

<块引用>

不要指望 Apple 有任何修复,因为他们无法触及 GPLv3 代码查看 FSF boehm-gc 问题(除非他们使用 gcc43仍应为 GPLv2 的软件包).这个问题是由libunwind 的重新编译由以下事实证明替换 10.10 中的 libunwind.dylib 消除了boehm-gc 和 gcj 失败.

请注意,归档为 radr://21372179,FSF boehm-gc 库构建于 10.10 未能通过其在 10.11" 上的测试,但已关闭FSF boehm-gc 错误.

<小时>

更新 4:

MacPorts 找到了解决构建问题的方法,这是一个 该线程更新

<块引用>

附加的 Portfile.diff(当与提议的 gcc5 更新一起使用时#49227 修复了 gcj)解决了 pdftk 的构建问题.

<小时>

更新 5:

PDF 实验室的 Sid Steward 构建成功,他的反馈:

<块引用>

MacPorts gcc5 的修复允许我构建一个工作 pdftk在 El Capitan 上合并 PDF.修复已添加到您拥有的票证中发布到:

MacPorts

<块引用>

我将在打包之前对这个 pdftk 进行全面测试安装程序.这个过程可能需要几天时间.

<小时>

解决方案

感谢您的耐心等待.我已经在 OS X 10.11, El Capitan 上成功测试了这个 pdftk 安装程序和二进制文件:

https:///www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg

我将尽快更新我们的 PDF Labs 网站以反映此更新.

如果您已经从旧的安装程序安装了 pdftk,那么它应该可以毫无问题地安装在它的上面——在安装这个之前不需要删除旧的 pdftk.

请注意,此安装程序/二进制文件尚未在旧版本的 OS X 上进行测试.

请告诉我这对您有何帮助.

我要感谢 Aaron 打开这个帖子,并为我们在构建工具中遇到的问题带来了有益的关注.我还要感谢 MacPorts 团队的专业和及时的工作!

I've been using PDFTK Server on OSX pre 10.11 for over a year without any issues running commands on the command line.

After installing OSX 10.11 beta, I can no longer run any PDFTK Server commands on the command line. It does not throw any error, all the commands I try to execute just hang indefinitely.

I installed from a pkg I downloaded from the PDFTK Server website as always:

https://www.pdflabs.com/tools/pdftk-server/

I've also tried installing from source with Homebrew. The installation works, but I get the same results, the commands just hang in the terminal:

Homebrew tap

I've sent in the complaint to Apple via their Feedback Assistant application that gets installed when installing the beta two months ago without a response.

I've been told regarding the Apple Feedback Assistant:

You likely won't ever receive a response. Apple only replies through Feedback Assistant for major bugs of the operating system where they need additional information. It is not a way to obtain support, even less so for a third-party application.

I've also reached out to PDF Labs, the makers of the package, without response.

On MacPorts they're having an issue with the build on OS X 10.11, does this mean that there is a compatibility issue with PDFtk and 10.11 at the software level?

I've searched the web for a clue as to what might be causing the issue and how to fix it, but have found nothing tangible.

On OS X, I don't know how to go about figuring out if there is now a permission or path or even a Java issue after the upgrade.

Any help either trouble shooting the root cause or offering a fix is appreciated.


UPDATE 1:

I heard back from Sid Steward at PDF Labs:

We have been wrestling with this almost as long as the beta has been out. We are still working on it. There appears to be an incompatibility with one of the (non-Apple) libraries that pdftk uses and OS X 10.11. Presently I am installing yet another update to Apple's developer tools with the hope that it will solve the problem. I will update you with our progress.


UPDATE 2:

Sid Steward at PDF Labs again:

It looks like there are two threads running under pdftk, and that they are deadlocked. That means that each thread is waiting for the other to finish. I'm not an expert here, but that's my impression. Here is a screenshot from Mac's Activity Monitor to illustrate:

The above snapshot is from trying to run the pdftk binary currently on our site on OS X 10.11. The libgcj library noted above comes with pdftk, where the others are OS X libraries.

As I say, I just installed Xcode 7.0.1, which was released yesterday on the App store. I will now attempt to use these tools to build pdftk.


UPDATE 3:

MacPorts is working the build issue with PDFtk, this is an update on that thread (Note: this is unrelated to PDFtk Labs):

This is due to the recompilation of libunwind in 10.11 using Apple Clang 7 producing new valid optimizations (according to Apple) that tickle an unknown bug in FSF boehm-gc.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66848

Don't expect any fixes from Apple as they can't touch the GPLv3 code to look at the FSF boehm-gc problem (unless they used the gcc43 package which should still be GPLv2). That this issue is triggered by the recompilation of libunwind is demonstrated by that fact that substituting the libunwind.dylib from 10.10 eliminates both the boehm-gc and gcj failures.

Note that is was filed as radr://21372179, "the FSF boehm-gc library built on 10.10 fails to pass its tests on 10.11" but closed as being an FSF boehm-gc bug.


UPDATE 4:

MacPorts found a way to solve the build issue, this is an update on that thread

The attached Portfile.diff (when used with the proposed gcc5 update on #49227 which fixes gcj) solves the build issue with pdftk.


UPDATE 5:

Sid Steward at PDF Labs has a successful build, his feedback:

A fix for MacPorts gcc5 allowed me to build a working pdftk that merges PDFs on El Capitan. The fix was added to the ticket you had posted to:

MacPorts

I will proceed to fully test this pdftk before packing it up into an installer. This process could take a couple days.


解决方案

Thank you for your patience. I have successfully tested this pdftk installer and binary on OS X 10.11, El Capitan:

https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg

I will update our PDF Labs site soon to reflect this update.

If you already have pdftk installed from the old installer, this should install right on top of it without a problem -- it shouldn't be necessary to remove the old pdftk before installing this one.

Note that this installer/binary has not yet been tested on older versions of OS X.

Please let me know how this works for you.

I want to thank Aaron for opening this thread and for bringing helpful attention to the problem we were having with the build tools. I also want to thank the MacPorts team for their professional and timely work!

这篇关于OS X 10.11 上的 PDFtk 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆