ropensci / pdftools

Text Extraction, Rendering and Converting of PDF Documents
https://docs.ropensci.org/pdftools
Other
524 stars 71 forks source link

Install error: ld: library not found for -ljpeg #90

Closed ibagur closed 3 years ago

ibagur commented 3 years ago

Hi, I am trying to install by compiling from source on R 4.0.3 on BigSur 11.2 and get this error:

ld: library not found for -ljpeg
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [qpdf.so] Error 1
ERROR: compilation failed for package `‘qpdf’```

I have libjpeg 9d installed via Homebrew. I tried to reinstall and re-start R with no success. No matter what, the error persists. Any suggestions? Thanks

jeroen commented 3 years ago

Duplicate https://github.com/ropensci/qpdf/issues/12 (please don't cross pos)