I am currently using Databricks 10.4 LTS and an attempting to install the R package survminer which doesn't seem to be working.
https://CRAN.R-project.org/package=survminer
I am using the following code for repro:
install.packages("survminer", repos = "https://cran.microsoft.com/snapshot/2022-06-24/")
I get the following output which says compilation terminated and it looks to me as if there is an issue installing the package jpeg. I have also tried separately installing jpeg but this comes up with the same error.
* installing *source* package ‘jpeg’ ...
** package ‘jpeg’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2 -fdebug-prefix-map=/build/r-base-i2PIHO/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c read.c -o read.o
In file included from read.c:1:
rjcommon.h:11:10: fatal error: jpeglib.h: No such file or directory
11 | #include <jpeglib.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:168: read.o] Error 1
ERROR: compilation failed for package ‘jpeg’
* removing ‘/local_disk0/.ephemeral_nfs/envs/rEnv-6d56942f-5b26-4324-a5a9-5b6efc753410/jpeg’
ERROR: dependency ‘jpeg’ is not available for package ‘gridtext’
* removing ‘/local_disk0/.ephemeral_nfs/envs/rEnv-6d56942f-5b26-4324-a5a9-5b6efc753410/gridtext’
ERROR: dependency ‘gridtext’ is not available for package ‘ggtext’
* removing ‘/local_disk0/.ephemeral_nfs/envs/rEnv-6d56942f-5b26-4324-a5a9-5b6efc753410/ggtext’
ERROR: dependency ‘ggtext’ is not available for package ‘survminer’
* removing ‘/local_disk0/.ephemeral_nfs/envs/rEnv-6d56942f-5b26-4324-a5a9-5b6efc753410/survminer’
Installing package into ‘/local_disk0/.ephemeral_nfs/envs/rEnv-6d56942f-5b26-4324-a5a9-5b6efc753410’
(as ‘lib’ is unspecified)
also installing the dependencies ‘jpeg’, ‘gridtext’, ‘ggtext’
trying URL 'https://cran.microsoft.com/snapshot/2022-06-24/src/contrib/jpeg_0.1-9.tar.gz'
Content type 'application/octet-stream' length 18596 bytes (18 KB)
==================================================
downloaded 18 KB
trying URL 'https://cran.microsoft.com/snapshot/2022-06-24/src/contrib/gridtext_0.1.4.tar.gz'
Content type 'application/octet-stream' length 234461 bytes (228 KB)
==================================================
downloaded 228 KB
trying URL 'https://cran.microsoft.com/snapshot/2022-06-24/src/contrib/ggtext_0.1.1.tar.gz'
Content type 'application/octet-stream' length 1211846 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
trying URL 'https://cran.microsoft.com/snapshot/2022-06-24/src/contrib/survminer_0.4.9.tar.gz'
Content type 'application/octet-stream' length 3599577 bytes (3.4 MB)
==================================================
downloaded 3.4 MB
Warning in utils::install.packages(pkgs, ...) :
installation of package ‘jpeg’ had non-zero exit status
Warning in utils::install.packages(pkgs, ...) :
installation of package ‘gridtext’ had non-zero exit status
Warning in utils::install.packages(pkgs, ...) :
installation of package ‘ggtext’ had non-zero exit status
Warning in utils::install.packages(pkgs, ...) :
installation of package ‘survminer’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpGTVXP1/downloaded_packages’
Any help provided is greatly appreciated!