cyanfish / naps2

Scan documents to PDF and more, as simply as possible.
https://www.naps2.com
Other
2.74k stars 321 forks source link

Import PDF Files #464

Open UstimVV opened 1 day ago

UstimVV commented 1 day ago

Describe the bug When I try to import PDF into NAPS2 7.5.1 I ha

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Import'
  2. Choose any pdf file
  3. Click on 'Open'
  4. See error: The file 'filename.pdf' could not be imported...
  5. Technical details: System.Exception: Could not load library: "libpdfium.so". Error: see on screenshot 2024-10-03_11-59

Screenshots If applicable, add screenshots to help explain your problem.

Desktop:

cyanfish commented 23 hours ago

What version of CentOS?

UstimVV commented 5 hours ago

kernel version 6.6.51 centos 8

sT331h0rs3 commented 2 hours ago

I had such issue, when naps2 executable was incorrectly placed in /usr/bin directory instead of /usr/lib/naps2. The error occurs because libpdfium.so is lazy-loaded from path ./_linux/libpdfium.so, relative to the naps2 executable. The full path is /usr/lib/naps2/_linux/libpdfium.so by default.

UstimVV commented 2 hours ago

Executable naps2 I found in /usr/bin. I made symlink /usr/lib/naps2 -> /usr/lib64/naps2/ where I found file _linux/libpdfium.so. But I have the same error.

sT331h0rs3 commented 1 hour ago

Executable naps2 should be placed in /usr/lib/naps2 directory by default (could be /usr/lib64/naps2 in some distros as well). File /usr/bin/naps2 might be a symlink to /usr/lib/naps2/naps2 though.

cyanfish commented 1 hour ago

The other possibility is that Centos is using too old a glibc (2.28) for the pdfium build (it's supposed to only require 2.27 but I might have missed some change). I'll check later but if you want you can see what glibc version libpdfium.so depends on. https://stackoverflow.com/questions/3436008/how-to-determine-version-of-glibc-glibcxx-binary-will-depend-on

UstimVV commented 1 hour ago
  1. Executable naps2 I put to diffrents places - no success.
  2. glibc version now 2.36