From bbolker at gmail.com  Tue May 26 16:00:06 2015
From: bbolker at gmail.com (Ben Bolker)
Date: Tue, 26 May 2015 10:00:06 -0400
Subject: [Rd] building with tcltk on Ubuntu 14.04
Message-ID: <55647C66.6060702@gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


  I'm having some issues trying to compile R-devel on Ubuntu 14.04.
library("tcltk") works fine on the version of R as installed from
Debian packages; I've done "apt-get build-dep r-base" so I think I
have all the tcltk libraries I need installed ... (and going back to
things like apt-get tcl-dev and apt-get tk-dev confirms that they're
really there ...)

  When I configure and build R without doing anything special, tcltk
is not found and capabilities()["tcltk"] is FALSE.  I modified
config.site as follows:

## Use TCLTK_LIBS for all '-L' and '-l' options needed for linking
TCLTK_LIBS="-L/usr/lib/x86_64-linux-gnu"
## Use TCLTK_CPPFLAGS for all '-I' options needed for finding the tcl.h
TCLTK_CPPFLAGS="-I/usr/include/tcl"

  This makes capabilities()["tcltk"] TRUE, but trying library("tcltk")
still returns

Error : .onLoad failed in loadNamespace() for 'tcltk', details:
  call: fun(libname, pkgname)
  error: Tcl/Tk support is not available on this system

  Any more suggestions on troubleshooting/diagnosing?  I'm not sure
what I should be telling R to look for ...

  thanks
    Ben Bolker


PS  (I chose /usr/lib/x86_64-linux_gnu for TCLTK_LIBS because that's
where the tcl libraries seem to be located ...

ls /usr/lib/x86_64-linux-gnu/libtcl*
/usr/lib/x86_64-linux-gnu/libtcl8.5.a
/usr/lib/x86_64-linux-gnu/libtcl8.6.so
/usr/lib/x86_64-linux-gnu/libtclstub8.5.a
/usr/lib/x86_64-linux-gnu/libtcl8.5.so
/usr/lib/x86_64-linux-gnu/libtcl8.6.so.0
/usr/lib/x86_64-linux-gnu/libtclstub8.6.a
/usr/lib/x86_64-linux-gnu/libtcl8.5.so.0
/usr/lib/x86_64-linux-gnu/libtcl.a
/usr/lib/x86_64-linux-gnu/libtclstub.a
/usr/lib/x86_64-linux-gnu/libtcl8.6.a
/usr/lib/x86_64-linux-gnu/libtcl.so
)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJVZHxmAAoJEOCV5YRblxUHfe4IAL4RYDa89Hri91j7T//+RS+6
+/rnB6DH3QMVCYRtxmKFIZELhFyaU1pxe3/2p8gIWz8jIcVkGk3BEcdIeS0VgySk
wwrnfwv1PNE6gaun4CIWC/ICFQlCTAjo+eLFFYtSElETcm7UbRKMlojyWQSHjrf9
0ioloHZ72uajbzxcZdezRsYG/8+VwgkKWtoa5MfmggH5T8EL5QGD5S2aGqEPtWJe
UZUZCQFN43vRnHPgYxIQO3oXmjnnn0BsZlx+lXwqsRR7dplknCgQWyP0TEcv9Sur
GaemV2oEuUIpAgkMBZt2vTSGIrDgWUIfGcKT0nHNwtvh+cLcDuysj6M+6/JZCaQ=
=xkGy
-----END PGP SIGNATURE-----



[Rd] building with tcltk on Ubuntu 14.04
Ben Bolker