building with tcltk on Ubuntu 14.04

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

building with tcltk on Ubuntu 14.04

bbolker
-----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-----

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: building with tcltk on Ubuntu 14.04

Dirk Eddelbuettel

Ben,

At work with little time so _real brief_:

 -- we build r-devel "all the time", in fact nightly for rocker; and there
    are Dockerfiles to look at
   
 -- we build R all the time in Debian, Ubuntu, ... and my sources for that
    are not on GH but you can fetch the diff.gz

 -- there is an entire list dedicated to this: r-sig-debian so could you
    pretty-please post there (after registering, if needed)

I'll be glad to help, preferably on r-sig-debian.

Cheers, Dirk

--
http://dirk.eddelbuettel.com | @eddelbuettel | [hidden email]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: building with tcltk on Ubuntu 14.04

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


  False alarm.  Completely wiping out my build directory followed by

../R-devel/configure --with-tcl-config=/usr/lib/tclConfig.sh
- --with-tk-config=/usr/lib/tkConfig.sh; make

  seems to work.  (My fault for assuming repeated cycles of
./configure; make would actually do the right thing ...)

  There seems to be a corollary of Clarke's Law ("any sufficient
advanced technology is indistinguishable from magic") that says that
any sufficiently complex software system may *not* be magic, but it's
just easier to treat it as though it is ...

  Thanks for the offer of help ...

  Ben


On 15-05-26 10:25 AM, Dirk Eddelbuettel wrote:

>
> Ben,
>
> At work with little time so _real brief_:
>
> -- we build r-devel "all the time", in fact nightly for rocker; and
> there are Dockerfiles to look at
>
> -- we build R all the time in Debian, Ubuntu, ... and my sources
> for that are not on GH but you can fetch the diff.gz
>
> -- there is an entire list dedicated to this: r-sig-debian so could
> you pretty-please post there (after registering, if needed)
>
> I'll be glad to help, preferably on r-sig-debian.
>
> Cheers, Dirk
>

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

iQEcBAEBAgAGBQJVZI2kAAoJEOCV5YRblxUHYEIH/j6jViruOP479yPNkRWXKNlA
0uXDYmZek/Zd2hwH6iHtmyTTLY3gR61metvLxFx/mpY3W/skM83Wpc9vWVHfUa8/
8aOaOndZnREEs5AT2TZwuYymXKYO7zEUeqL1cArXyzzqej0irUi5MjpWQsxD5hNA
M1LvpK3h31EWeJaJPdQHooZUMjgKKt1bJDrjIhs09J/jyVjUj5XANhsVfNUUbru5
pwXyMc3OMXfElgKM6/vO6gt1u2x7VHHpAZX7NrxgFksTaG4ceT0H8jUYIolCQmDy
RC7//onh0t8sqZCS3a4koZWy5mfnrcSc8M5PZaTZFnEQtU6D0jFSGCGGQ3Ncmow=
=UCFD
-----END PGP SIGNATURE-----

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: building with tcltk on Ubuntu 14.04

Martin Maechler
>>>>> Ben Bolker <[hidden email]>
>>>>>     on Tue, 26 May 2015 11:13:41 -0400 writes:


    > False alarm.  Completely wiping out my build directory followed by

    > ../R-devel/configure --with-tcl-config=/usr/lib/tclConfig.sh
    > - --with-tk-config=/usr/lib/tkConfig.sh; make

    > seems to work.  (My fault for assuming repeated cycles of
    > ./configure; make would actually do the right thing ...)

    > There seems to be a corollary of Clarke's Law ("any sufficient
    > advanced technology is indistinguishable from magic") that says that
    > any sufficiently complex software system may *not* be magic, but it's
    > just easier to treat it as though it is ...

    > Thanks for the offer of help ...

I also run several computers on Ubuntu 14.04
and never had to anything special, I mean *no*  
--with-tcl-...  or --with-tk-....
where ever needed for me on 14.04 or earlier Ubuntu's... so I do
wonder how you got into problems at all.

Martin


    > Ben


    > On 15-05-26 10:25 AM, Dirk Eddelbuettel wrote:
    >>
    >> Ben,
    >>
    >> At work with little time so _real brief_:
    >>
    >> -- we build r-devel "all the time", in fact nightly for rocker; and
    >> there are Dockerfiles to look at
    >>
    >> -- we build R all the time in Debian, Ubuntu, ... and my sources
    >> for that are not on GH but you can fetch the diff.gz
    >>
    >> -- there is an entire list dedicated to this: r-sig-debian so could
    >> you pretty-please post there (after registering, if needed)
    >>
    >> I'll be glad to help, preferably on r-sig-debian.
    >>
    >> Cheers, Dirk
    >>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: building with tcltk on Ubuntu 14.04

Jari Oksanen

On 28/05/2015, at 11:57 AM, Martin Maechler wrote:

>>>>>> Ben Bolker <[hidden email]>
>>>>>>    on Tue, 26 May 2015 11:13:41 -0400 writes:
>
>
>> False alarm.  Completely wiping out my build directory followed by
>
>> ../R-devel/configure --with-tcl-config=/usr/lib/tclConfig.sh
>> - --with-tk-config=/usr/lib/tkConfig.sh; make
>
>> seems to work.  (My fault for assuming repeated cycles of
>> ./configure; make would actually do the right thing ...)
>
>> There seems to be a corollary of Clarke's Law ("any sufficient
>> advanced technology is indistinguishable from magic") that says that
>> any sufficiently complex software system may *not* be magic, but it's
>> just easier to treat it as though it is ...
>
>> Thanks for the offer of help ...
>
> I also run several computers on Ubuntu 14.04
> and never had to anything special, I mean *no*  
> --with-tcl-...  or --with-tk-....
> where ever needed for me on 14.04 or earlier Ubuntu's... so I do
> wonder how you got into problems at all.
>
I also have the same problem with Ubuntu (at least in 14.04, now in 15.04): ./configure does not find tcl/tk without --with-tcl-… and --with-tk-…

They are in quite normal places, but still need manual setting. Currently I use something like --with-tcl-config=/usr/lib/tclConfig.sh --with-tk-config=/usr/lib/tkConfig.sh

I need these explicit switches only when configure is overwritten. Normal compilation with ./configure works OK and finds Tcl/Tk, but a couple of times per year the configure seems to change so much that I need to use these switches. I have had this problem a couple of years.

If I need to guess, I do something wrong and against instructions, and therefore I won't complain.

Cheers, Jari Oksanen

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: building with tcltk on Ubuntu 14.04

Dirk Eddelbuettel

On 28 May 2015 at 09:38, Jari Oksanen wrote:
| On 28/05/2015, at 11:57 AM, Martin Maechler wrote:
| >>>>>> Ben Bolker <[hidden email]>
| >> False alarm.  Completely wiping out my build directory followed by
| >
| >> ../R-devel/configure --with-tcl-config=/usr/lib/tclConfig.sh
| >> - --with-tk-config=/usr/lib/tkConfig.sh; make

| > I also run several computers on Ubuntu 14.04
| > and never had to anything special, I mean *no*  
| > --with-tcl-...  or --with-tk-....
| > where ever needed for me on 14.04 or earlier Ubuntu's... so I do
| > wonder how you got into problems at all.
| >
| I also have the same problem with Ubuntu (at least in 14.04, now in 15.04): ./configure does not find tcl/tk without --with-tcl-… and --with-tk-…
|
| They are in quite normal places, but still need manual setting. Currently I use something like --with-tcl-config=/usr/lib/tclConfig.sh --with-tk-config=/usr/lib/tkConfig.sh

Wild guess:  You are still using tcl85-dev and tk8.5-dev.

Switch to 8.6 for both and defaults should work.

See eg this Dockerfile with the 'recipe' for building R(-devel) from source;
it too relies on tck/tk 8.6 now.

Dirk

PS Allow me to reiterate that this discussion would have felt more at home on
the r-sig-debian list.

--
http://dirk.eddelbuettel.com | @eddelbuettel | [hidden email]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel