Skip to content

tcltk

4 messages · Paul Gilbert, Dirk Eddelbuettel

#
(Another question about my incomplete configuration.)

I thought I had everything working with my Ubuntu 8.10 64bit, but I 
still seem to be missing tcl/tk:

 > require("tcltk")
Loading required package: tcltk
Error in firstlib(which.lib.loc, package) :
   Tcl/Tk support is not available on this system


Synaptic shows tcl and tk both installed, and I have r-base and 
r-base-dev installed.  How do I find what is missing?

Thanks,
Paul
====================================================================================

La version fran?aise suit le texte anglais.

------------------------------------------------------------------------------------

This email may contain privileged and/or confidential in...{{dropped:26}}
#
On 29 December 2008 at 20:44, Paul Gilbert wrote:
| (Another question about my incomplete configuration.)
| 
| I thought I had everything working with my Ubuntu 8.10 64bit, but I 
| still seem to be missing tcl/tk:
| 
|  > require("tcltk")
| Loading required package: tcltk
| Error in firstlib(which.lib.loc, package) :
|    Tcl/Tk support is not available on this system
| 
| 
| Synaptic shows tcl and tk both installed, and I have r-base and 
| r-base-dev installed.  How do I find what is missing?

Did you build R by hand?  The prebuild packages have working tcltk:

deddelbuettel at ....:~$ echo "capabilities()"|R --slave
    jpeg      png     tiff    tcltk      X11     aqua http/ftp  sockets
    TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE     TRUE
  libxml     fifo   cledit    iconv      NLS  profmem    cairo
    TRUE     TRUE    FALSE     TRUE     TRUE     TRUE     TRUE

amd64, Ubuntu intrepid, Ubuntu R binaries from CRAN.

Dirk
#
Dirk Eddelbuettel wrote:
Yes, I built from the tarball (./configure ; make ).

To answer my own question, building requires the header files in tcl-dev 
and tk-dev.  The fact that they were missing was buried in the output of 
  configure.  Perhaps tcl-dev and tk-dev should be dependencies in 
r-base-dev? (Or perhaps they are and it is still just me getting an old 
version.)

Paul

   The prebuild packages have working tcltk:
====================================================================================

La version fran?aise suit le texte anglais.

------------------------------------------------------------------------------------

This email may contain privileged and/or confidential information, and the Bank of
Canada does not waive any related rights. Any distribution, use, or copying of this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately from
your system and notify the sender promptly by email that you have done so. 

------------------------------------------------------------------------------------

Le pr?sent courriel peut contenir de l'information privil?gi?e ou confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires d?sign?s est interdite. Si vous recevez
ce courriel par erreur, veuillez le supprimer imm?diatement et envoyer sans d?lai ?
l'exp?diteur un message ?lectronique pour l'aviser que vous avez ?limin? de votre
ordinateur toute copie du courriel re?u.
#
On 30 December 2008 at 10:02, Paul Gilbert wrote:
| > Did you build R by hand?
| 
| Yes, I built from the tarball (./configure ; make ).
| 
| To answer my own question, building requires the header files in tcl-dev 
| and tk-dev.  The fact that they were missing was buried in the output of 
|   configure.  Perhaps tcl-dev and tk-dev should be dependencies in 
| r-base-dev? (Or perhaps they are and it is still just me getting an old 
| version.)

No, sorry. As I said just yesterday, the purpose of r-base-dev is to
facilitate use of installed.packages() once R is up, and not for building R.

What you are after is provided (correctly) by Build-Depends: in the r-base
package.

You could

  a) either just install the r-base binaries as I suggested yesterday

  b) or at least take advantage of the Build-Deps via 
       sudo apt-get build-dep r-base

I am sorry if this is still confusing. We would all appreciate patches to the
README files if you can find a way to express this more clearly.

Hope this helps, Dirk

| Paul
| 
|    The prebuild packages have working tcltk:
| > 
| > deddelbuettel at ....:~$ echo "capabilities()"|R --slave
| >     jpeg      png     tiff    tcltk      X11     aqua http/ftp  sockets
| >     TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE     TRUE
| >   libxml     fifo   cledit    iconv      NLS  profmem    cairo
| >     TRUE     TRUE    FALSE     TRUE     TRUE     TRUE     TRUE
| > 
| > amd64, Ubuntu intrepid, Ubuntu R binaries from CRAN.
| > 
| > Dirk 
| > 
| ====================================================================================
| 
| La version fran?aise suit le texte anglais.
| 
| ------------------------------------------------------------------------------------
| 
| This email may contain privileged and/or confidential information, and the Bank of
| Canada does not waive any related rights. Any distribution, use, or copying of this
| email or the information it contains by other than the intended recipient is
| unauthorized. If you received this email in error please delete it immediately from
| your system and notify the sender promptly by email that you have done so. 
| 
| ------------------------------------------------------------------------------------
| 
| Le pr?sent courriel peut contenir de l'information privil?gi?e ou confidentielle.
| La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute diffusion,
| utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
| personne autre que le ou les destinataires d?sign?s est interdite. Si vous recevez
| ce courriel par erreur, veuillez le supprimer imm?diatement et envoyer sans d?lai ?
| l'exp?diteur un message ?lectronique pour l'aviser que vous avez ?limin? de votre
| ordinateur toute copie du courriel re?u.