Skip to content

[Bug]: installation of pdftools requires poppler on linux #382

@kellijohnson-NOAA

Description

@kellijohnson-NOAA

Describe the bug

I am on a linux machine (codespaces) and I am having trouble installing {asar} because it requires {pdftools}, which on linux requires that I have poppler installed.

* installing *source* package ‘pdftools’ ...
** package ‘pdftools’ successfully unpacked and MD5 sums checked
** using staged installation
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] --------------------------------
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)
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] ---------------------------
<stdin>:1:10: fatal error: poppler-document.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘pdftools’
* removing ‘/usr/local/lib/R/site-library/pdftools’

I tried

sudo apt-get install libpoppler-cpp-dev

which was successful but it is not in the necessary paths to be able to install the package ☹️. But then I tried

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

and then installed {pdftools} in a new R session. Some of this information might be helpful on the README because I feel that the number of people running things in remote linux-like environments is going to increase with time.

Describe how to reproduce the bug

No response

Screenshots

No response

Which OS are you seeing the problem on?

No response

Which version of asar are you seeing the problem on?

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage_neededThis issue needs review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions