HenrikBengtsson / CBI-software

A Scientific Software Stack for HPC (CentOS oriented)
https://wynton.ucsf.edu/hpc/software/software-repositories.html
5 stars 2 forks source link

R: capabilities("tcltk") on Wynton's Rocky 8 nodes #110

Closed HenrikBengtsson closed 10 months ago

HenrikBengtsson commented 11 months ago

Issue

$ Rscript -e 'capabilities("tcltk")'
tcltk 
FALSE
$ diff -u -w /wynton/home/cbi/shared/software/CBI/_centos7/R-4.3.1-gcc10/config.log.summary /wynton/home/cbi/shared/software/CBI/_rocky8/R-4.3.1-gcc10/config.log.summary 
--- /wynton/home/cbi/shared/software/CBI/_centos7/R-4.3.1-gcc10/config.log.summary  2023-09-07 17:12:54.000000000 -0700
+++ /wynton/home/cbi/shared/software/CBI/_rocky8/R-4.3.1-gcc10/config.log.summary   2023-09-15 17:07:27.000000000 -0700
@@ -1,7 +1,7 @@
 R is now configured for x86_64-pc-linux-gnu

   Source directory:            .
-  Installation directory:      /wynton/home/cbi/shared/software/CBI/_centos7/R-4.3.1-gcc10
+  Installation directory:      /wynton/home/cbi/shared/software/CBI/_rocky8/R-4.3.1-gcc10

   C compiler:                  gcc  -g -O2
   Fortran fixed-form compiler: gfortran  -g -O2
@@ -15,7 +15,7 @@
   Fortran free-form compiler:  gfortran  -g -O2
   Obj-C compiler:          

-  Interfaces supported:        X11, tcltk
+  Interfaces supported:        X11
   External libraries:          pcre2, readline, curl
   Additional capabilities:     PNG, JPEG, TIFF, NLS, cairo, ICU
   Options enabled:             shared R library, shared BLAS, R profiling, memory profiling

Troubleshooting

Rocky 8:

[dev3]$ grep -A 1 -E "checking for (tcl|tk)" /wynton/home/cbi/shared/software/CBI/_rocky8/R-4.3.1-gcc10/config.log
configure:50048: checking for tclConfig.sh
configure:50086: result: no
configure:50095: checking for tclConfig.sh in library (sub)directories
configure:50117: result: no
configure:50129: checking for tkConfig.sh
configure:50167: result: no
configure:50176: checking for tkConfig.sh in library (sub)directories
configure:50198: result: no
configure:50295: checking for tcl.h
conftest.c:271:10: fatal error: tcl.h: No such file or directory

CentOS 7:

[dev1]$ grep -A 1 -E "checking for (tcl|tk)" /wynton/home/cbi/shared/software/CBI/_centos7/R-4.3.1-gcc10/config.log
configure:50048: checking for tclConfig.sh
configure:50086: result: no
configure:50095: checking for tclConfig.sh in library (sub)directories
configure:50114: result: /usr/lib64/tclConfig.sh
configure:50129: checking for tkConfig.sh
configure:50167: result: no
configure:50176: checking for tkConfig.sh in library (sub)directories
configure:50195: result: /usr/lib64/tkConfig.sh
configure:50259: checking for tcl.h
configure:50259: gcc -c  -g -O2 -fpic -I/usr/local/include  -I/usr/include conftest.c >&5

Conclusion

HenrikBengtsson commented 11 months ago

Fixed R 4.3.1 on Rocky 8.

Remaining task is to reinstall R for the older version on Rocky 8.

HenrikBengtsson commented 10 months ago

https://cran.r-project.org/src/base/R-3/:

https://cran.r-project.org/src/base/R-4/:

HenrikBengtsson commented 10 months ago

Solved for R (>= 3.3.3). Older versions of R has other installation issues on Rocky 8, which are now tracked in Issue #116.