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

install tcltk #5

Closed
tdhock opened this issue Jan 16, 2024 · 4 comments
Closed

install tcltk #5

tdhock opened this issue Jan 16, 2024 · 4 comments

Comments

@tdhock
Copy link
Owner

tdhock commented Jan 16, 2024

Rdatatable/data.table#5823 discusses release 1.15.0 which caused a revdep check failure for a package that depends on tcltk, which is not installed on monsoon.
I sent an email to ask-arc@nau.edu which asked them to create a module for tcltk.

@tdhock
Copy link
Owner Author

tdhock commented Jan 17, 2024

I would like to build my own R (not use module R, not use conda), and I actually do that under ~/R/R-4.3.2 etc.
Using that R I built, capabilities("tcltk") is FALSE.
When I use R source code ./configure --help I see

--with-tcltk use Tcl/Tk (if available), or specify its library
dir [yes]
--with-tcl-config=TCL_CONFIG
specify location of tclConfig.sh []
--with-tk-config=TK_CONFIG
specify location of tkConfig.sh []

and when I run configure via params.R I see

checking for tclConfig.sh... no
checking for tclConfig.sh in library (sub)directories... no
checking for tkConfig.sh... no
checking for tkConfig.sh in library (sub)directories... no
checking for tcl.h... yes
checking for tk.h... yes

so it seems the C headers are found, but not the Config shell scripts (tkConfig.sh and tclConfig.sh), so I asked where those can be found.

@tdhock
Copy link
Owner Author

tdhock commented Jan 17, 2024

this is resolved by telling R configure where to find tcl/tk config.sh 18feb86

 ./configure --prefix=$HOME --enable-memory-profiling --with-tcl-config=$CONDA_PREFIX/lib/tclConfig.sh --with-tk-config=$CONDA_PREFIX/lib/tkConfig.sh 

@tdhock tdhock closed this as completed Jan 17, 2024
@tdhock
Copy link
Owner Author

tdhock commented Feb 1, 2024

when checking TTAinterfaceTrendAnalysis

* installing *source* package 'tcltk2' ...
** package 'tcltk2' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
X connection to :99 broken (explicit kill or server shutdown).
ERROR: lazy loading failed for package 'tcltk2'

@tdhock tdhock reopened this Feb 1, 2024
@tdhock
Copy link
Owner Author

tdhock commented Feb 2, 2024

tcltk2 works now, not sure why,

* installing *source* package 'tcltk2' ...
** package 'tcltk2' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (tcltk2)

@tdhock tdhock closed this as completed Feb 2, 2024
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

1 participant