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.
Rolf, A few quick points as I just noticed this thread (as I don't regularly dip into r-help any more): 1) You really do not need to builds R locally on Ubuntu. I update the Debian package hours after Peter cuts a release. Michael rolls Ubuntu releases off these typically the same or next day, which arrive at CRAN in less than 72 hours after a release. See https://cloud.r-project.org/bin/linux/ubuntu/README.html I run these binaries myself on several personal machines and dozens more at work. They. Just. Work. Why not take advantage of a freebie? 2) If you still want to build locally, simply copy what we do. Our sources are public. The debian/control for r-base (for Debian, albeit, don't have Michael's here but tcl/tk has not changed in year) has Build-Depends: gcc (>= 4:4.1.0), [...], tcl8.6-dev, tk8.6-dev, [...] so make sure you install those two package, and the debian/rules does ./configure --prefix=/usr \ [....] --with-tcltk \ [....] [...] $(MAKE) [...] ie nothing special for configure or make. My most recent build then logged checking for tclConfig.sh... no checking for tclConfig.sh in library (sub)directories... /usr/lib/tcl8.6/tclConfig.sh checking for tkConfig.sh... no checking for tkConfig.sh in library (sub)directories... /usr/lib/tk8.6/tkConfig.sh checking tcl.h usability... yes checking tcl.h presence... yes checking for tcl.h... yes checking tk.h usability... yes checking tk.h presence... yes checking for tk.h... yes checking whether compiling/linking Tcl/Tk code works... yes which echos what Peter already said. Its final state report for configure was R is now configured for x86_64-pc-linux-gnu Source directory: . Installation directory: /usr C compiler: gcc -std=gnu99 -g -O2 -fdebug-prefix-map=/build/r-base-3.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g Fortran 77 compiler: gfortran -g -O2 -fdebug-prefix-map=/build/r-base-3.4.2=. -fstack-protector-strong Default C++ compiler: g++ -g -O2 -fdebug-prefix-map=/build/r-base-3.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g C++98 compiler: g++ -std=gnu++98 -g -O2 -fdebug-prefix-map=/build/r-base-3.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g C++11 compiler: g++ -std=gnu++11 -g -O2 -fdebug-prefix-map=/build/r-base-3.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g C++14 compiler: g++ -g -O2 -fdebug-prefix-map=/build/r-base-3.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g C++17 compiler: g++ -std=gnu++17 -g -O2 -fdebug-prefix-map=/build/r-base-3.4.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g Fortran 90/95 compiler: gfortran -g -O2 -fdebug-prefix-map=/build/r-base-3.4.2=. -fstack-protector-strong Obj-C compiler: Interfaces supported: X11, tcltk External libraries: readline, BLAS(generic), LAPACK(generic), curl Additional capabilities: PNG, JPEG, TIFF, NLS, cairo, ICU Options enabled: shared R library, R profiling, memory profiling Capabilities skipped: Options not enabled: shared BLAS Recommended packages: no which looks pretty good to me. No capabilities. All batteries included. (And rec'd packages is no as we package them individually). 3) r-help is the wrong list for these questions. Come to r-sig-debian which covers R on .deb based systems. We don't bite, and it is low volume Cheers, Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
On 19/11/17 05:36, Albrecht Kauffmann wrote:> Did you istall the tcl- and tk-devel packages?(a) That should be "dev" not "devel". (b) The answer to your question is, yes, as I made clear in my original post. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276
Hum, missed that bit. Looking at the configure script, the only way I can see it failing to look in /usr/lib/tcl8.6 is if ${LIBnn} is not "lib". Any chance it might be set to lib64? -pd> On 18 Nov 2017, at 22:32 , Rolf Turner <r.turner at auckland.ac.nz> wrote: > > > On 19/11/17 05:36, Albrecht Kauffmann wrote: > >> Did you istall the tcl- and tk-devel packages? > > (a) That should be "dev" not "devel". > > (b) The answer to your question is, yes, as I made clear in my original post. > > 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/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com