It recently came to my attention that my R installation no longer has tcltk capability. I can't figure out why or what to do about it. I built R from source. I configured using the "--with-tcltk" flag. The build and install *seemed* to go OK, but after realising I didn't have tcltk capability I looked into config.log. There I found:> configure:39486: checking for tclConfig.sh > configure:39519: result: no > configure:39528: checking for tclConfig.sh in library (sub)directories > configure:39549: result: no > configure:39561: checking for tkConfig.sh > configure:39594: result: no > configure:39603: checking for tkConfig.sh in library (sub)directories > configure:39624: result: no > configure:39721: checking for tcl.h > conftest.c:249:17: fatal error: tcl.h: No such file or directory > compilation terminated.I have tcl and tk (and the -dev versions) installed on my machine, and they are apparently up-to-date). Moreover if I do "locate tclConfig.sh" I get:> /usr/lib/tcl8.6/tclConfig.sh > /usr/lib/x86_64-linux-gnu/tcl8.6/tclConfig.shAnd likewise "locate tcl.h" produces:> /usr/include/tcl8.6/tcl.h > /usr/include/tcl8.6/tcl-private/generic/tcl.hSo why can't "configure" find these files, and how can I tell it where to find them? I'm running Ubuntu 16.04 and my last install of R was of version 3.4.2. My installation procedure always worked in the past .... Thanks for any tips. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276
When I have compiled from sourced on Ubuntu, I did NOT include the "with-tcltk" and it worked fine. Did you try that, please? Thanks, Erin On Fri, Nov 17, 2017 at 6:34 PM, Rolf Turner <r.turner at auckland.ac.nz> wrote:> > It recently came to my attention that my R installation no longer has > tcltk capability. > > I can't figure out why or what to do about it. > > I built R from source. I configured using the "--with-tcltk" flag. The > build and install *seemed* to go OK, but after realising I didn't have > tcltk capability I looked into config.log. > > There I found: > > configure:39486: checking for tclConfig.sh >> configure:39519: result: no >> configure:39528: checking for tclConfig.sh in library (sub)directories >> configure:39549: result: no >> configure:39561: checking for tkConfig.sh >> configure:39594: result: no >> configure:39603: checking for tkConfig.sh in library (sub)directories >> configure:39624: result: no >> configure:39721: checking for tcl.h >> conftest.c:249:17: fatal error: tcl.h: No such file or directory >> compilation terminated. >> > > I have tcl and tk (and the -dev versions) installed on my machine, and > they are apparently up-to-date). > > Moreover if I do "locate tclConfig.sh" I get: > > /usr/lib/tcl8.6/tclConfig.sh >> /usr/lib/x86_64-linux-gnu/tcl8.6/tclConfig.sh >> > > And likewise "locate tcl.h" produces: > > /usr/include/tcl8.6/tcl.h >> /usr/include/tcl8.6/tcl-private/generic/tcl.h >> > > So why can't "configure" find these files, and how can I tell it where to > find them? > > I'm running Ubuntu 16.04 and my last install of R was of version 3.4.2. > > My installation procedure always worked in the past .... > > Thanks for any tips. > > cheers, > > Rolf Turner > > -- > Technical Editor ANZJS > Department of Statistics > University of Auckland > Phone: +64-9-373-7599 ext. 88276 > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posti > ng-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]]
On 18/11/17 17:00, Erin Hodgess wrote:> When I have compiled from sourced on Ubuntu, I did NOT include the > "with-tcltk" and it worked fine.? Did you try that, please?In the past I have configured without using the "--with-tcltk" flag, and R of course built just fine. But it *did not* have tcltk capability. When I wanted that capability I had to start using the aforesaid flag. It makes absolutely no sense that one would get tcltk capability when configuring without the flag but *not* get it when configuring *with* the flag. If that is indeed the case then this definitely constitutes a bug in the "configure" system. I cannot believe that it would work to leave out the flag, but I'll try it just for the sake of "completeness". cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276
On 18/11/17 17:00, Erin Hodgess wrote:> When I have compiled from sourced on Ubuntu, I did NOT include the > "with-tcltk" and it worked fine.? Did you try that, please?As I said, this idea makes absolutely no sense, but OK, I tried it. And of course it didn't work. Using the newly built R I ran capabilities() and got:> jpeg png tiff tcltk X11 aqua > TRUE TRUE TRUE FALSE TRUE FALSE > http/ftp sockets libxml fifo cledit iconv > TRUE TRUE TRUE TRUE TRUE TRUE > NLS profmem cairo ICU long.double libcurl > TRUE FALSE TRUE TRUE TRUE TRUEcheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276
Did you istall the tcl- and tk-devel packages? Best, Albrecht -- Albrecht Kauffmann alkauffm at fastmail.fm Am Sa, 18. Nov 2017, um 05:00, schrieb Erin Hodgess:> When I have compiled from sourced on Ubuntu, I did NOT include the > "with-tcltk" and it worked fine. Did you try that, please? > > Thanks, > Erin > > > On Fri, Nov 17, 2017 at 6:34 PM, Rolf Turner <r.turner at auckland.ac.nz> > wrote: > > > > > It recently came to my attention that my R installation no longer has > > tcltk capability. > > > > I can't figure out why or what to do about it. > > > > I built R from source. I configured using the "--with-tcltk" flag. The > > build and install *seemed* to go OK, but after realising I didn't have > > tcltk capability I looked into config.log. > > > > There I found: > > > > configure:39486: checking for tclConfig.sh > >> configure:39519: result: no > >> configure:39528: checking for tclConfig.sh in library (sub)directories > >> configure:39549: result: no > >> configure:39561: checking for tkConfig.sh > >> configure:39594: result: no > >> configure:39603: checking for tkConfig.sh in library (sub)directories > >> configure:39624: result: no > >> configure:39721: checking for tcl.h > >> conftest.c:249:17: fatal error: tcl.h: No such file or directory > >> compilation terminated. > >> > > > > I have tcl and tk (and the -dev versions) installed on my machine, and > > they are apparently up-to-date). > > > > Moreover if I do "locate tclConfig.sh" I get: > > > > /usr/lib/tcl8.6/tclConfig.sh > >> /usr/lib/x86_64-linux-gnu/tcl8.6/tclConfig.sh > >> > > > > And likewise "locate tcl.h" produces: > > > > /usr/include/tcl8.6/tcl.h > >> /usr/include/tcl8.6/tcl-private/generic/tcl.h > >> > > > > So why can't "configure" find these files, and how can I tell it where to > > find them? > > > > I'm running Ubuntu 16.04 and my last install of R was of version 3.4.2. > > > > My installation procedure always worked in the past .... > > > > Thanks for any tips. > > > > cheers, > > > > Rolf Turner > > > > -- > > Technical Editor ANZJS > > Department of Statistics > > University of Auckland > > Phone: +64-9-373-7599 ext. 88276 > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posti > > ng-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > > > -- > Erin Hodgess > Associate Professor > Department of Mathematical and Statistics > University of Houston - Downtown > mailto: erinm.hodgess at gmail.com > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.