PDFTools not working wtih Linux

I am able to get my Shiny Application to run on my local Windows machine but when I try to replicate the application on our R Server I am running into issues with the PDFTools Package. When I attempt to install the PDFTools package I get the following error:

--------------------------- [ANTICONF] --------------------------------

Configuration failed to find 'poppler-cpp' system library. Try installing:

  • rpm: poppler-cpp-devel (Fedora, CentOS, RHEL)

  • brew: poppler (MacOS)

  • deb: libpoppler-cpp-dev (Debian, Ubuntu, etc)

  • On Ubuntu 16.04 or 18.04 use this PPA:

sudo add-apt-repository -y ppa:cran/poppler

sudo apt-get update

sudo apt-get install -y libpoppler-cpp-dev

If poppler-cpp is already installed, check that 'pkg-config' is in your

PATH and PKG_CONFIG_PATH contains a poppler-cpp.pc file. If pkg-config

is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:

R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'

-------------------------- [ERROR MESSAGE] ---------------------------

:1:30: fatal error: poppler-document.h: No such file or directory

compilation terminated.


It looks like I need to install poppler but when I try to do the suggested in the error message, I'm unable to install properly. Do I need elevated admin rights?

sudo add-apt-repository -y ppa:cran/poppler
sudo apt-get update
sudo apt-get install -y libpoppler-cpp-dev

System Information:
Sysname: Linux
Machine: x86_64

Anyone figure out a solution to this?

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.