hi,
Working on cloudera machine learning, create a new blank project,
launch a R 4.1 session and just try to install pdftools :
the error
: In file included from libqpdf/Pl_DCT.cc:1:
include/qpdf/Pl_DCT.hh:27:10: fatal error: jpeglib.h: No such file or directory
27 | #include
| ^~~
can you help me to find a solution?
sessionInfo()
R version 4.1.1 (--)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.6 LTS
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Rook_1.1-1 RJSONIO_1.3-1.5 Cairo_1.2-0
loaded via a namespace (and not attached):
[1] compiler_4.1.1 tools_4.1.1 codetools_0.2-18 brew_1.0-6
install.packages("pdftools")
Installing package into ‘/home/cdsw/.local/lib/R/4.1/library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘Rcpp’, ‘qpdf’
The downloaded source packages are in
‘/tmp/RtmpehArrv/downloaded_packages’
Warning messages:
1: In install.packages("pdftools") :
installation of package ‘qpdf’ had non-zero exit status
2: In install.packages("pdftools") :
installation of package ‘pdftools’ had non-zero exit status
hi, Working on cloudera machine learning, create a new blank project, launch a R 4.1 session and just try to install pdftools :
the error : In file included from libqpdf/Pl_DCT.cc:1: include/qpdf/Pl_DCT.hh:27:10: fatal error: jpeglib.h: No such file or directory 27 | #include
| ^
~~can you help me to find a solution?
sessionInfo() R version 4.1.1 (--) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.6 LTS
Matrix products: default BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.8.so
locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] Rook_1.1-1 RJSONIO_1.3-1.5 Cairo_1.2-0
loaded via a namespace (and not attached): [1] compiler_4.1.1 tools_4.1.1 codetools_0.2-18 brew_1.0-6
install.packages("pdftools") Installing package into ‘/home/cdsw/.local/lib/R/4.1/library’ (as ‘lib’ is unspecified) also installing the dependencies ‘Rcpp’, ‘qpdf’
trying URL 'https://cran.rstudio.com/src/contrib/Rcpp_1.0.10.tar.gz' Content type 'application/x-gzip' length 2936173 bytes (2.8 MB)
downloaded 2.8 MB
trying URL 'https://cran.rstudio.com/src/contrib/qpdf_1.3.2.tar.gz' Content type 'application/x-gzip' length 322552 bytes (314 KB)
downloaded 314 KB
trying URL 'https://cran.rstudio.com/src/contrib/pdftools_3.3.3.tar.gz' Content type 'application/x-gzip' length 936280 bytes (914 KB)
downloaded 914 KB
~~compilation terminated. make: *** [/usr/local/lib/R/etc/Makeconf:175: libqpdf/Pl_DCT.o] Error 1 ERROR: compilation failed for package ‘qpdf’The downloaded source packages are in ‘/tmp/RtmpehArrv/downloaded_packages’ Warning messages: 1: In install.packages("pdftools") : installation of package ‘qpdf’ had non-zero exit status 2: In install.packages("pdftools") : installation of package ‘pdftools’ had non-zero exit status