![如何在 Debian 中找到与 R poppler 等效的东西?](https://linux22.com/image/101230/%E5%A6%82%E4%BD%95%E5%9C%A8%20Debian%20%E4%B8%AD%E6%89%BE%E5%88%B0%E4%B8%8E%20R%20poppler%20%E7%AD%89%E6%95%88%E7%9A%84%E4%B8%9C%E8%A5%BF%EF%BC%9F.png)
我正在尝试重现该线程的提案这里,通过 R 获取 pdf 文档中的页数,但我无法以 root 身份在 Debian 8.5 中安装 R poppler
> install.packages("Rpoppler")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://cran.wu.ac.at/src/contrib/Rpoppler_0.0-2.tar.gz'
Content type 'unknown' length 38208 bytes (37 KB)
==================================================
downloaded 37 KB
* installing *source* package ‘Rpoppler’ ...
** package ‘Rpoppler’ successfully unpacked and MD5 sums checked
checking for pkg-config... /usr/bin/pkg-config
checking whether pkg-config knows about poppler-glib >= 0.18.0... no
configure: error: cannot determine poppler-glib compile/link flags
ERROR: configuration failed for package ‘Rpoppler’
* removing ‘/usr/local/lib/R/site-library/Rpoppler’
The downloaded source packages are in
‘/tmp/RtmpwShV17/downloaded_packages’
Warning message:
In install.packages("Rpoppler") :
installation of package ‘Rpoppler’ had non-zero exit status
> install.packages("Rpoppler::PDF_info")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message:
package ‘Rpoppler::PDF_info’ is not available (for R version 3.3.2)
R:3.3.2
操作系统:Debian 8.5