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 error using 8.0.0-rc4 with arch64 #2344

Closed
vitormattos opened this issue Feb 22, 2024 · 9 comments
Closed

pdftk error using 8.0.0-rc4 with arch64 #2344

vitormattos opened this issue Feb 22, 2024 · 9 comments

Comments

@vitormattos
Copy link
Member

vitormattos commented Feb 22, 2024

image
image

Did download 3 times, each time deleting the binary pdftk file, in case it was a corrupted download.

EDIT : Server is arch64, downloaded binary is only available for x86_64.

Originally posted by @Aeris1One in #2327 (comment)

@vitormattos vitormattos changed the title Can still repro the pdftk error using 8.0.0-rc4 released after #2331 was merged. pdftk error using 8.0.0-rc4 with arch64 Feb 22, 2024
@Aeris1One
Copy link

Uh, that's either ARM64 or aarch64, not arch64, sorry for the typo :/

Server is a Hetzner ARM64 CAX11 Cloud Server

@vitormattos
Copy link
Member Author

@Aeris1One could you provide the output of the follow command?

php -r "echo php_uname('m').PHP_EOL;"

@vitormattos
Copy link
Member Author

I used this project:
https://gitlab.com/pdftk-java/pdftk
At this project, have a version of PDFTK to ARM, here: https://gitlab.com/pdftk-java/pdftk/uploads/2b32d1c2f855f92cea379f566a882ac3/native-image.zip
Could you test if the file pdftk inside this zip file work fine to you?

@Aeris1One
Copy link

It doesn't. Seems I'm not the only one to have a problem with that executable, see the comment just below the attachment in https://gitlab.com/pdftk-java/pdftk/-/issues/129

Can't you use the .jar file ? It should be arch-agnostic

@vitormattos
Copy link
Member Author

Yes, could be this.
We already have the java binary, we only need to use the java binary to run the jar....

@vitormattos
Copy link
Member Author

I made a new push to PR replacing by jar version.

@vitormattos
Copy link
Member Author

Could you override at your environment the changed files to make a quick test? If is hard to do this, you will need wait to next rc.

@Aeris1One
Copy link

Thanks, I'll try it in a few hours.

Yes, could be this. We already have the java binary, we only need to use the java binary to run the jar....

Just need to be careful to install the java binary before the pdftk one.

Also, unrelated but it seems in 8.0.0-rc4 that the /java/ subdirectory in app data directory isn't created. Had to manually create it before running occ libresign:install --java to make it working.

@vitormattos
Copy link
Member Author

Hi @Aeris1One I published a new RC implementing your suggested fix.

Could you check?

I will close this issue for now and if this problem persist, you can return here and I will reopen this issue.

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

No branches or pull requests

2 participants