Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing issue (looks due to qpdf dependecy) #124

Open
Ludo-vic-D opened this issue Apr 24, 2023 · 2 comments
Open

Installing issue (looks due to qpdf dependecy) #124

Ludo-vic-D opened this issue Apr 24, 2023 · 2 comments

Comments

@Ludo-vic-D
Copy link

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 <jpeglib.h>
| ^~~~~~~~~~~

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

  • installing source package ‘Rcpp’ ...
    ** package ‘Rcpp’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fpic -g -O2 -c api.cpp -o api.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fpic -g -O2 -c attributes.cpp -o attributes.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fpic -g -O2 -c barrier.cpp -o barrier.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fpic -g -O2 -c date.cpp -o date.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fpic -g -O2 -c module.cpp -o module.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fpic -g -O2 -c rcpp_init.cpp -o rcpp_init.o
    g++ -std=gnu++14 -shared -L/usr/local/lib/R/lib -L/usr/local/lib -o Rcpp.so api.o attributes.o barrier.o date.o module.o rcpp_init.o -L/usr/local/lib/R/lib -lR
    installing to /home/cdsw/.local/lib/R/4.1/library/00LOCK-Rcpp/00new/Rcpp/libs
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded from temporary location
    ** checking absolute paths in shared objects and dynamic libraries
    ** testing if installed package can be loaded from final location
    ** testing if installed package keeps a record of temporary installation path
  • DONE (Rcpp)
  • installing source package ‘qpdf’ ...
    ** package ‘qpdf’ successfully unpacked and MD5 sums checked
    ** using staged installation
    Using bundled qpdf (recommended)
    ** libs
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c bindings.cpp -o bindings.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/BitStream.cc -o libqpdf/BitStream.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/BitWriter.cc -o libqpdf/BitWriter.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/Buffer.cc -o libqpdf/Buffer.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/BufferInputSource.cc -o libqpdf/BufferInputSource.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/ClosedFileInputSource.cc -o libqpdf/ClosedFileInputSource.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/ContentNormalizer.cc -o libqpdf/ContentNormalizer.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/FileInputSource.cc -o libqpdf/FileInputSource.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/InputSource.cc -o libqpdf/InputSource.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/InsecureRandomDataProvider.cc -o libqpdf/InsecureRandomDataProvider.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/JSON.cc -o libqpdf/JSON.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/MD5.cc -o libqpdf/MD5.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/OffsetInputSource.cc -o libqpdf/OffsetInputSource.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/Pipeline.cc -o libqpdf/Pipeline.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/Pl_AES_PDF.cc -o libqpdf/Pl_AES_PDF.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/Pl_ASCII85Decoder.cc -o libqpdf/Pl_ASCII85Decoder.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/Pl_ASCIIHexDecoder.cc -o libqpdf/Pl_ASCIIHexDecoder.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/Pl_Buffer.cc -o libqpdf/Pl_Buffer.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/Pl_Concatenate.cc -o libqpdf/Pl_Concatenate.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/Pl_Count.cc -o libqpdf/Pl_Count.o
    g++ -std=gnu++14 -I"/usr/local/lib/R/include" -DNDEBUG -Iinclude -Ilibqpdf -I'/home/cdsw/.local/lib/R/4.1/library/Rcpp/include' -I/usr/local/include -fvisibility=hidden -fpic -g -O2 -c libqpdf/Pl_DCT.cc -o libqpdf/Pl_DCT.o
    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 <jpeglib.h>
    | ^~~~~~~~~~~
    compilation terminated.
    make: *** [/usr/local/lib/R/etc/Makeconf:175: libqpdf/Pl_DCT.o] Error 1
    ERROR: compilation failed for package ‘qpdf’
  • removing ‘/home/cdsw/.local/lib/R/4.1/library/qpdf’
    ERROR: dependency ‘qpdf’ is not available for package ‘pdftools’
  • removing ‘/home/cdsw/.local/lib/R/4.1/library/pdftools’

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

@jeroen
Copy link
Member

jeroen commented Apr 24, 2023

sudo apt-get install libjpeg-dev

@Ludo-vic-D
Copy link
Author

Dont get privilège to execute apt-get on this environement (docker image)
https://imgur.com/a/oQXc7LQ
any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants