Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdftk m1 pro 成功安装 #55

Closed
simon2413 opened this issue Dec 14, 2021 · 8 comments
Closed

pdftk m1 pro 成功安装 #55

simon2413 opened this issue Dec 14, 2021 · 8 comments

Comments

@simon2413
Copy link

simon2413 commented Dec 14, 2021

系统:macOS Monterey 12.1
芯片:m1 pro
需要安装m1版本的homebrew,然后在终端使用brew install pdftk-java,安装成功可以使用。

@simon2413 simon2413 changed the title pdftk 吗 pdftk m1 pro 成功安装 Dec 14, 2021
@l0o0
Copy link
Owner

l0o0 commented Dec 15, 2021

我会更新到readme 中

@l0o0
Copy link
Owner

l0o0 commented Dec 22, 2021

同学,我想问一下,安装完pdftk-java后,使用默认的pdftk 路径就可以了么?

@simon2413
Copy link
Author

同学,我想问一下,安装完pdftk-java后,使用默认的pdftk 路径就可以了么?

要看homebrew的安装路径,安装完成后用终端里面 which pdftk 就能看到绝对路径了。

@l0o0
Copy link
Owner

l0o0 commented Dec 22, 2021

谢谢同学的回复

@l0o0 l0o0 closed this as completed Dec 22, 2021
@H-xie
Copy link

H-xie commented Apr 9, 2022

按照 readme 安装 pdftk-java 出错:

/opt/homebrew/bin/pdftk: line 3: /Users/x'x'x/@@HOMEBREW_JAVA@@/bin/java: No such file or directory
/opt/homebrew/bin/pdftk: line 3: exec: /Users/x'x'x/@@HOMEBREW_JAVA@@/bin/java: cannot execute: No such file or directory

根据 Homebrew/discussions#2530 的说明,需要用这个指令安装:

[user@hostname ~ ]$  HOMEBREW_BOTTLE_DOMAIN= brew install pdftk-java

原因:brew 使用了清华镜像,brew 的 bottle 不能正常工作。参见:Homebrew/discussions#2530 (reply in thread)

希望能更新首页的安装说明!
感谢项目作者们的时间和付出,让zotero更好用了!

@gaoxuanzhu
Copy link

我的也是这样,但是我按照你说的用了这个指令,还是没有变化

@l0o0
Copy link
Owner

l0o0 commented Apr 22, 2023

我的也是这样,但是我按照你说的用了这个指令,还是没有变化

同学,你在终端里运行 pdftk 会显示什么?有没有错误提示

@JamieJustTang
Copy link

我的也是这样,但是我按照你说的用了这个指令,还是没有变化

use reinstall instead of install . it might solve your problem.

HOMEBREW_BOTTLE_DOMAIN= brew reinstall pdftk-java  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants