1

Running Doom Emacs 3.0.0-alpha on Emacs 28.1 on Manajaro with all the latest updates installed.

When I M-x pdf-tools-install RET it fails to compile. The following is the output of the command:

-*- mode: compilation; default-directory: "~/.emacs.d/.local/straight/build-28.1/pdf-tools/build/server/" -*-
Comint started at Mon Jun  6 20:39:41

/home/sandip/.emacs.d/.local/straight/build-28.1/pdf-tools/build/server/autobuild -i /home/sandip/.emacs.d/.local/straight/build-28.1/pdf-tools/
---------------------------
    Installing packages    
---------------------------
Skipping package installation (already installed)

---------------------------
 Configuring and compiling 
---------------------------
./configure -q --bindir=/home/sandip/.emacs.d/.local/straight/build-28.1/pdf-tools/ && make clean && make -s
configure: error: cannot find necessary  poppler-private header (see README.org)
===========================
     Build failed.  ;o(    
===========================
Note: maybe try the '-d' option.

Comint exited abnormally with code 1 at Mon Jun  6 20:39:44

I looked for but could not find any poppler-private package.

How do I install pdf-tools?

7
  • 1
    On debian, you need to install libpoppler-private-dev, I guess. What OS are you using? Jun 6, 2022 at 19:50
  • 1
    In fact, the requirement to install libpoppler-private was removed from pdf-tools 16 days ago. I suggest installing an updated pdf-tools from melpa or straight (you see what I did there?) from github.com/vedang/pdf-tools Jun 6, 2022 at 19:56
  • @FranBurstall Thanks. I am using Manjaro linux. I have updated the question to include this information.
    – deshmukh
    Jun 7, 2022 at 3:08
  • @deskmukh, did you installed first the Doom’s pdf module? See also this file: ```~/.emacs.d/modules/tools/pdf/README.org, to know what to expect in this installation.
    – Ian
    Jun 7, 2022 at 13:49
  • @Ian Yes. Doom's pdf module was installed. I removed and reinstalled it. And I had gone through that file. But nothing there helped me. Am I missing something?
    – deshmukh
    Jun 7, 2022 at 14:44

1 Answer 1

1

I had same problem on Manjaro and I just solved it by installing the package emacs-pdf-tools-git from the AUR.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.