On 2019-11-02 01:51, David Winsemius wrote:

On 11/1/19 8:03 PM, Spencer Graves wrote:
Hello, All:


      How can I get the dev files for libjpeg installed under macOS 10.15.1 Catalina?


You probably have the right tools, but it wouldn't hurt to check:


https://cran.r-project.org/bin/macosx/tools/


And have you installed the libjpeg library from the /libs/ directory?


http://mac.r-project.org/libs/

The directions for installation from a Terminal session are at the bottom of the page.

I have not updated to Catalina, but the error message suggested that jpeglib.h could not be found.


      Thanks or the reply.  I tried to (re)install both the tools and libjpeg with apparent success.


      However, when I tried "install.packages()" again, I got the same error message as before.


      Other thoughts, e.g., diagnostic tests?


      Thanks again.
      Spencer Graves


Hope this helps;

David





      Simon Urbanek, the maintainer for the "jpeg" package, said I need them to install the "jpeg" package from sources.  I'm unable to get that package to install either as a binary or from sources;  see below.


      Suggestions?
      Thanks,
      Spencer Graves


> update.packages()
jpeg :
 Version 0.1-8 installed in /Library/Frameworks/R.framework/Versions/3.6/Resources/library
 Version 0.1-8.1 available at https://cran.rstudio.com
Update? (Yes/no/cancel) y

  There is a binary version available but the
  source version is later:
     binary  source needs_compilation
jpeg  0.1-8 0.1-8.1              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) y
installing the source package ‘jpeg’

trying URL 'https://cran.rstudio.com/src/contrib/jpeg_0.1-8.1.tar.gz'
Content type 'application/x-gzip' length 18116 bytes (17 KB)
==================================================
downloaded 17 KB

* installing *source* package ‘jpeg’ ...
** package ‘jpeg’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c read.c -o read.o
In file included from read.c:1:
./rjcommon.h:11:10: fatal error: 'jpeglib.h' file not found
#include <jpeglib.h>
         ^~~~~~~~~~~
1 error generated.
make: *** [read.o] Error 1
ERROR: compilation failed for package ‘jpeg’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/jpeg’ * restoring previous ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/jpeg’

The downloaded source packages are in
‘/private/var/folders/mh/mrm_14nx19g13lsnj9zmvwjr0000gn/T/Rtmp8GMSE7/downloaded_packages’
Warning message:
In install.packages(update[instlib == l, "Package"], l, repos = repos,  :
  installation of package ‘jpeg’ had non-zero exit status

> update.packages()
jpeg :
 Version 0.1-8 installed in /Library/Frameworks/R.framework/Versions/3.6/Resources/library
 Version 0.1-8.1 available at https://cran.rstudio.com
Update? (Yes/no/cancel) y

  There is a binary version available but the
  source version is later:
     binary  source needs_compilation
jpeg  0.1-8 0.1-8.1              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) n trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/jpeg_0.1-8.tgz'
Content type 'application/x-gzip' length 389601 bytes (380 KB)
==================================================
downloaded 380 KB


The downloaded binary packages are in
/var/folders/mh/mrm_14nx19g13lsnj9zmvwjr0000gn/T//Rtmp8GMSE7/downloaded_packages

> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.1

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets
[6] methods   base

other attached packages:
[1] bssm_0.1.8

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.2       lattice_0.20-38  assertthat_0.2.1
 [4] dplyr_0.8.3      crayon_1.3.4     R6_2.4.0
 [7] grid_3.6.1       gtable_0.3.0     magrittr_1.5
[10] coda_0.19-3      scales_1.0.0     ggplot2_3.2.1
[13] pillar_1.4.2     rlang_0.4.1      lazyeval_0.2.2
[16] rstudioapi_0.10  diagis_0.1.3-1   tools_3.6.1
[19] glue_1.3.1       purrr_0.3.3      munsell_0.5.0
[22] compiler_3.6.1   pkgconfig_2.0.3  colorspace_1.4-1
[25] tidyselect_0.2.5 gridExtra_2.3    tibble_2.1.3

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to