Discussion:
[R-sig-Debian] pdftools on Ubuntu
Eduardo Morelli
2016-12-02 11:21:59 UTC
Permalink
Hi,

I am trying to install pdftools package on R 3.3.1 (Ubuntu 16.04), but the
following issue occurs:

------------------------- 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=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘pdftools’
* removing ‘/usr/local/lib/R/site-library/pdftools’

And when I try to install libpoppler-cpp-dev, I am getting another error:

install.packages('libpoppler-cpp-dev')
package ‘libpoppler-cpp-dev’ is not available (for R version 3.3.1)
My questions:

1) Is there any place where I can find libpoppler-cpp-dev? (I tried
https://cran.r-project.org/src/contrib/Archive/ without success)

2) Is there any newer version for R in Ubuntu?

Thanks in advance,

Eduardo Morelli

[[alternative HTML version deleted]]
francois Guilhaumon IRD
2016-12-02 11:25:20 UTC
Permalink
Hello,


libpoppler-cpp-dev is not an R package but a system library to be installed
with (for example) :

sudo apt-get install libpoppler-cpp-dev


hope this help.



François Guilhaumon

°°
François Guilhaumon, research scientist (IRD <http://en.ird.fr>), associate
editor (Journal of Biogeography
<http://onlinelibrary.wiley.com/journal/10.1111/%28ISSN%291365-2699>).

homepage : http://francoisguilhaumon.free.fr

MARBEC <http://www.umr-marbec.fr> - Biodiversité Marine et ses usages
UMR 9190 - University of Montpellier
Montpellier, France

⦿⟻▲.·´¯`·..><((((º>.·´¯`·.¸◎¸.·´¯`·...¸><((((º>
Post by Eduardo Morelli
Hi,
I am trying to install pdftools package on R 3.3.1 (Ubuntu 16.04), but the
------------------------- ANTICONF ERROR ---------------------------
* 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
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘pdftools’
* removing ‘/usr/local/lib/R/site-library/pdftools’
install.packages('libpoppler-cpp-dev')
package ‘libpoppler-cpp-dev’ is not available (for R version 3.3.1)
1) Is there any place where I can find libpoppler-cpp-dev? (I tried
https://cran.r-project.org/src/contrib/Archive/ without success)
2) Is there any newer version for R in Ubuntu?
Thanks in advance,
Eduardo Morelli
[[alternative HTML version deleted]]
_______________________________________________
R-SIG-Debian mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-debian
[[alternative HTML version deleted]]
Eduardo Morelli
2016-12-02 11:31:05 UTC
Permalink
Hi Francois,

Thanks for your quick response.

Actually, I had already done that...

sudo apt-get install libpoppler-cpp-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpoppler-cpp-dev is already the newest version (0.41.0-0ubuntu1.1).
0 upgraded, 0 newly installed, 0 to remove and 107 not upgraded.

Therefore, I assume I have this installed.

Best regards,

Eduardo

2016-12-02 9:25 GMT-02:00 francois Guilhaumon IRD <
Post by francois Guilhaumon IRD
Hello,
libpoppler-cpp-dev is not an R package but a system library to be
sudo apt-get install libpoppler-cpp-dev
hope this help.
François Guilhaumon
°°
François Guilhaumon, research scientist (IRD <http://en.ird.fr>),
associate editor (Journal of Biogeography
<http://onlinelibrary.wiley.com/journal/10.1111/%28ISSN%291365-2699>).
homepage : http://francoisguilhaumon.free.fr
MARBEC <http://www.umr-marbec.fr> - Biodiversité Marine et ses usages
UMR 9190 - University of Montpellier
Montpellier, France
⦿⟻▲.·´¯`·..><((((º>.·´¯`·.¸◎¸.·´¯`·...¸><((((º>
Post by Eduardo Morelli
Hi,
I am trying to install pdftools package on R 3.3.1 (Ubuntu 16.04), but the
------------------------- ANTICONF ERROR ---------------------------
* 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
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘pdftools’
* removing ‘/usr/local/lib/R/site-library/pdftools’
install.packages('libpoppler-cpp-dev')
package ‘libpoppler-cpp-dev’ is not available (for R version 3.3.1)
1) Is there any place where I can find libpoppler-cpp-dev? (I tried
https://cran.r-project.org/src/contrib/Archive/ without success)
2) Is there any newer version for R in Ubuntu?
Thanks in advance,
Eduardo Morelli
[[alternative HTML version deleted]]
_______________________________________________
R-SIG-Debian mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-debian
[[alternative HTML version deleted]]
Dirk Eddelbuettel
2016-12-02 12:41:12 UTC
Permalink
On 2 December 2016 at 09:31, Eduardo Morelli wrote:
| Actually, I had already done that...
|
| sudo apt-get install libpoppler-cpp-dev
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| libpoppler-cpp-dev is already the newest version (0.41.0-0ubuntu1.1).
| 0 upgraded, 0 newly installed, 0 to remove and 107 not upgraded.
|
| Therefore, I assume I have this installed.

Jeroen's script executes this (silently):

$ pkg-config --cflags poppler-cpp
-I/usr/include/poppler/cpp -I/usr/include/poppler
$
$ pkg-config --libs poppler-cpp
-lpoppler-cpp
$

If that works then the installation should work. It does on Ubuntu 16.04:


$ install.r pdftools ## install.r is in littler aka r-cran-littler
trying URL 'https://cran.rstudio.com/src/contrib/pdftools_0.5.tar.gz'
Content type 'application/x-gzip' length 8501 bytes
==================================================
downloaded 8501 bytes

* installing *source* package ‘pdftools’ ...
** package ‘pdftools’ successfully unpacked and MD5 sums checked
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/poppler/cpp -I/usr/include/poppler
Using PKG_LIBS=-lpoppler-cpp
** libs
ccache g++ -I/usr/share/R/include -DNDEBUG -I/usr/include/poppler/cpp
*-I/usr/include/poppler -I"/usr/local/lib/R/site-library/Rcpp/include"
*-fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
*-Wdate-time -D_FORT IFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c RcppExports.cpp -o RcppExports.o
ccache g++ -I/usr/share/R/include -DNDEBUG -I/usr/include/poppler/cpp
*-I/usr/include/poppler -I"/usr/local/lib/R/site-library/Rcpp/include"
*-fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
*-Wdate-time -D_FORT IFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c bindings.cpp -o bindings.o
ccache g++ -I/usr/share/R/include -DNDEBUG -I/usr/include/poppler/cpp
*-I/usr/include/poppler -I"/usr/local/lib/R/site-library/Rcpp/include"
*-fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
*-Wdate-time -D_FORT IFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c init.cpp -o init.o
g++ -Wl,-S -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o pdftools.so RcppExports.o bindings.o init.o -lpoppler-cpp -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/pdftools/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (pdftools)

The downloaded source packages are in
‘/tmp/downloaded_packages’
$


Note the

Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/poppler/cpp -I/usr/include/poppler
Using PKG_LIBS=-lpoppler-cpp

Maybe you are missing package pkg-config ?

Dirk


|
| Best regards,
|
| Eduardo
|
| 2016-12-02 9:25 GMT-02:00 francois Guilhaumon IRD <
| ***@ird.fr>:
|
| > Hello,
| >
| >
| > libpoppler-cpp-dev is not an R package but a system library to be
| > installed with (for example) :
| >
| > sudo apt-get install libpoppler-cpp-dev
| >
| >
| > hope this help.
| >
| >
| >
| > François Guilhaumon
| >
| > °°
| > François Guilhaumon, research scientist (IRD <http://en.ird.fr>),
| > associate editor (Journal of Biogeography
| > <http://onlinelibrary.wiley.com/journal/10.1111/%28ISSN%291365-2699>).
| >
| > homepage : http://francoisguilhaumon.free.fr
| >
| > MARBEC <http://www.umr-marbec.fr> - Biodiversité Marine et ses usages
| > UMR 9190 - University of Montpellier
| > Montpellier, France
| >
| > ⦿⟻▲.·´¯`·..><((((º>.·´¯`·.¸◎¸.·´¯`·...¸><((((º>
| >
| > 2016-12-02 12:21 GMT+01:00 Eduardo Morelli <***@gmail.com>:
| >
| >> Hi,
| >>
| >> I am trying to install pdftools package on R 3.3.1 (Ubuntu 16.04), but the
| >> following issue occurs:
| >>
| >> ------------------------- 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=...'
| >> --------------------------------------------------------------------
| >> ERROR: configuration failed for package ‘pdftools’
| >> * removing ‘/usr/local/lib/R/site-library/pdftools’
| >>
| >> And when I try to install libpoppler-cpp-dev, I am getting another error:
| >>
| >> install.packages('libpoppler-cpp-dev')
| >> > package ‘libpoppler-cpp-dev’ is not available (for R version 3.3.1)
| >>
| >> My questions:
| >>
| >> 1) Is there any place where I can find libpoppler-cpp-dev? (I tried
| >> https://cran.r-project.org/src/contrib/Archive/ without success)
| >>
| >> 2) Is there any newer version for R in Ubuntu?
| >>
| >> Thanks in advance,
| >>
| >> Eduardo Morelli
| >>
| >> [[alternative HTML version deleted]]
| >>
| >> _______________________________________________
| >> R-SIG-Debian mailing list
| >> R-SIG-***@r-project.org
| >> https://stat.ethz.ch/mailman/listinfo/r-sig-debian
| >
| >
| >
|
| [[alternative HTML version deleted]]
|
| _______________________________________________
| R-SIG-Debian mailing list
| R-SIG-***@r-project.org
| https://stat.ethz.ch/mailman/listinfo/r-sig-debian
--
http://dirk.eddelbuettel.com | @eddelbuettel | ***@debian.org
Loading...