[R-SIG-Mac] compiling from source on ML, tcltk

Kasper Daniel Hansen kasperdanielhansen at gmail.com
Sun Sep 2 20:21:04 CEST 2012


I now want to get tcltk support working under ML (because I need to
test a few packages).

I have installed Xquartz and I have just install the new tcltk 8.5.5
from CRAN (which is not signed btw).

Running configure, I get

checking for tclConfig.sh... no
checking for tclConfig.sh in library (sub)directories...
/usr/local/lib/tclConfig.sh
checking for tkConfig.sh... no
checking for tkConfig.sh in library (sub)directories...
/usr/local/lib/tkConfig.sh
checking tcl.h usability... yes
checking tcl.h presence... yes
checking for tcl.h... yes
checking tk.h usability... no
checking tk.h presence... no
checking for tk.h... no
checking /usr/local/include/tk8.5/generic/tk.h usability... no
checking /usr/local/include/tk8.5/generic/tk.h presence... no
checking for /usr/local/include/tk8.5/generic/tk.h... no
checking /usr/local/include/tk8.5/tk.h usability... no
checking /usr/local/include/tk8.5/tk.h presence... no
checking for /usr/local/include/tk8.5/tk.h... no
checking /usr/local/include/tcl8.5/tk.h usability... no
checking /usr/local/include/tcl8.5/tk.h presence... no
checking for /usr/local/include/tcl8.5/tk.h... no
checking /usr/local/include/tk.h usability... no
checking /usr/local/include/tk.h presence... no
checking for /usr/local/include/tk.h... no
checking for tk.h... yes

So it seems to find tcltk.  I get a few warnings when it checks for X11 headers:

checking X11/Intrinsic.h presence... no
configure: WARNING: X11/Intrinsic.h: accepted by the compiler,
rejected by the preprocessor!
configure: WARNING: X11/Intrinsic.h: proceeding with the compiler's result

and

checking X11/Xmu/Atoms.h presence... no
configure: WARNING: X11/Xmu/Atoms.h: accepted by the compiler,
rejected by the preprocessor!
configure: WARNING: X11/Xmu/Atoms.h: proceeding with the compiler's result

I assume these are unrelated.  Although configure seems to find tcltk,
at the end of configure, I get

R is now configured for x86_64-apple-darwin12.1.0

  Source directory:          ../R-2.15.x-src
  Installation directory:    /usr/local/R/R-2.15.x

  C compiler:                /usr/bin/gcc-4.2 -arch x86_64 -std=gnu99
-g -O2 -std=gnu99 -march=nocona
  Fortran 77 compiler:       /usr/bin/gfortran-4.2 -arch x86_64  -g
-O2 -march=nocona

  C++ compiler:              /usr/bin/g++-4.2 -arch x86_64  -g -O2 -march=nocona
  Fortran 90/95 compiler:    /usr/bin/gfortran-4.2 -arch x86_64 -g -O2
-march=nocona
  Obj-C compiler:            /usr/bin/gcc-4.2 -arch x86_64 -g -O2
-fobjc-exceptions

  Interfaces supported:      X11, aqua
  External libraries:        readline, BLAS(vecLib), LAPACK(in blas), ICU
  Additional capabilities:   PNG, JPEG, NLS
  Options enabled:           R profiling, memory profiling, Java

  Recommended packages:      yes

which does not mention tcltk support under 'Interfaces supported'.

This used to work on Lion, and I am wondering what I am doing wrong.

My configure script is

export LANG=en_US.UTF-8
../${SRCDIR}/configure SHELL='/bin/bash' \
  --prefix=/usr/local/R/R-${R_VERSION} --disable-R-framework\
  CC="/usr/bin/gcc-4.2 -arch x86_64 -std=gnu99" \
  CFLAGS="-g -O2 -std=gnu99 -march=nocona" \
  CXX="/usr/bin/g++-4.2 -arch x86_64" \
  CXXFLAGS="-g -O2 -march=nocona" \
  OBJC="/usr/bin/gcc-4.2 -arch x86_64" \
  F77="/usr/bin/gfortran-4.2 -arch x86_64" \
  FFLAGS="-g -O2 -march=nocona" \
  FC="/usr/bin/gfortran-4.2 -arch x86_64" \
  FCFLAGS="-g -O2 -march=nocona" \
  --enable-memory-profiling\
  --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib\
  --with-system-zlib\
  --with-blas='-framework vecLib' --with-lapack

Thanks,
Kasper



More information about the R-SIG-Mac mailing list