Closed swarnendubiswas closed 1 month ago
I had the same issue on my Fedora 40. Solved by installing poppler-glib-devel package. I can see there that there's a similar package for Debian. See if you have that installed
Yes, sorry for not getting to this earlier - @swarnendubiswas I would definitely recommend doing as suggested and installing the libpoppler-glib-devel
to see if that fixes it. If that doesn't, would you be able to run apt list --installed | grep poppler
and put the output here?
I am using Ubuntu 22.04. The related packages are libpoppler-dev
and libpoppler-glib-dev
. I have installed the other -dev
packages as well, just in case.
https://packages.ubuntu.com/search?suite=jammy&searchon=names&keywords=libpoppler
╰─❯ apt search libpoppler-glib-dev
Sorting... Done
Full Text Search... Done
libpoppler-glib-dev/jammy-updates,jammy-security,now 22.02.0-2ubuntu0.5 amd64 [installed]
PDF rendering library -- development files (GLib interface)
I still get the following error.
The system library `poppler-glib` required by crate `poppler-sys-rs` was not found.
The file `poppler-glib.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
The PKG_CONFIG_PATH environment variable is not set.
HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `poppler-glib.pc`.
Ah - the error says that the PKG_CONFIG_PATH environment variable is not set
. This means that something is wrong with your pkg-config installation. Make sure it's installed, and if it already was, try reinstalling and restarting your machine to see if that fixes it.
It is possible, but I have the same error on two Ubuntu 22 LTS systems.
It is possible, but I have the same error on two Ubuntu 22 LTS systems.
1) sudo apt-get install libpoppler-glib-dev 2) sudo find /usr -name "poppler-glib.pc" 2) export PKG_CONFIG_PATH="enter path here":$PKG_CONFIG_PATH 3) source ~/.bashrc
try this it will export the path
This is almost definitely an issue on the local machine, and if it's not, it should be filed in either the poppler-rs
or system-deps
crates' repos.
It is possible, but I have the same error on two Ubuntu 22 LTS systems.
r u using WSL? the error occurs in my WSL and I can't solve the problem. But it can run on my Linux pc.
I have almost solved the problem.
you can edit the Cargo.toml of tdf as below
from poppler-rs = {version = "0.24.1", default-features = false, features =["v23_7"]}
to poppler-rs = {version = "0.24.1"}
It can compile after the modification, but the executable file tdf can not work.
It is possible, but I have the same error on two Ubuntu 22 LTS systems.
r u using WSL? the error occurs in my WSL and I can't solve the problem. But it can run on my Linux pc.
No, I am using Linux.
I have almost solved the problem. you can edit the Cargo.toml of tdf as below from
poppler-rs = {version = "0.24.1", default-features = false, features =["v23_7"]}
topoppler-rs = {version = "0.24.1"}
It can compile after the modification, but the executable file tdf can not work.
I dug deep into this rabbit hole today, and this worked for me. Thanks! (i am on wsl2) But now the pdf is not displaying correctly.
I am trying to build
tdf
on Ubuntu 22.04 LTS and I get the following error.I think I have all relevant
poppler
packages installed.rustc
version is 1.75.