poppler.cpp for pdftools install on RHEL 6.7


#1

Hi, I am trying to install pdftools R package on RHEL 6.7 and it has a dependency on poppler.cpp library. Can anyone suggest how to install this library?


#2

@jeroenooms any thoughts on pdftools for red hat enterprise linux


#3

I have added some comments to the readme how to build libpoppler from source on CentOS: https://github.com/ropensci/pdftools#building-from-source.

Let me know if this works for you!


#4

@jeroenooms Thanks for the instructions. I have installed the poppler-cpp library and specified the LD_LIBRARY_PATH and PKG_CONFIG_PATH.

export LD_LIBRARY_PATH="/usr/local/lib"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"

The LD_LIBRARY folder contains the libpoppler-cpp.* files and pkgconfig folder contains the *.pc files. Up on restarting RStudio server and trying to install ‘pdftools’ package, I get the following error:

** package ‘pdftools’ successfully unpacked and MD5 sums checked
Package poppler-cpp was not found in the pkg-config search path.
Perhaps you should add the directory containing `poppler-cpp.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘poppler-cpp’ found
Using PKG_CFLAGS=-I/usr/include/poppler/cpp -I/usr/include/poppler
Using PKG_LIBS=-lpoppler-cpp
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because poppler-cpp was not found. Try installing:

  • deb: libpoppler-cpp-dev (Debian, Ubuntu, etc)
  • rpm: poppler-cpp-devel (Fedora, CentOS, RHEL)
  • csw: poppler_dev (Solaris)
  • brew: poppler (Mac OSX)
    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=…

I do not have a ‘cpp’ folder in /usr/local/include path. Any suggestions?