Brian Lunergan
2011-Aug-14 19:12 UTC
[R-sig-Debian] Problem installing R Commander plugin...
Hi ho folks: I'm running the indicated version of R on Hardy Heron Ubuntu. (Yes, I am quite aware that it is considered old news but then I don't run the "latest and greatest" computer gear. I've tried both Gnome and KDE editions of Ubuntu Lynx and even a current run of Fedora. I find Heron simply works better on my machine.) When I try to install RcmdrPlugin.PT most of the components went on okay but I get the following output trying to install tkrplot. Need help interpreting it. Is there something I'm missing in my setup that will solve this if installed, or am I SOL trying to include this plugin? Any input would be helpful and much appreciated. R version 2.13.1 (2011-07-08) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.> install.packages()Loading Tcl/Tk interface ... done --- Please select a CRAN mirror for use in this session --- Installing package(s) into ?/usr/local/lib/R/site-library? (as ?lib? is unspecified) also installing the dependency ?tkrplot? trying URL 'http://www.stats.bris.ac.uk/R/src/contrib/tkrplot_0.0-22.tar.gz' Content type 'application/x-gzip' length 38784 bytes (37 Kb) opened URL =================================================downloaded 37 Kb trying URL 'http://www.stats.bris.ac.uk/R/src/contrib/RcmdrPlugin.PT_1.0.tar.gz' Content type 'application/x-gzip' length 7648 bytes opened URL =================================================downloaded 7648 bytes * installing *source* package ?tkrplot? ... configure: creating ./config.status config.status: creating src/Makevars ** libs gcc -I/usr/share/R/include -I/usr/include/tcl8.5 -I/usr/include/tcl8.5 -fpic -std=gnu99 -O3 -pipe -g -c tcltkimg.c -o tcltkimg.o tcltkimg.c:2:16: error: tk.h: No such file or directory tcltkimg.c:103: error: expected specifier-qualifier-list before ?Tcl_Interp? tcltkimg.c:114: error: expected specifier-qualifier-list before ?Tk_Window? tcltkimg.c: In function ?GetRplotImage?: tcltkimg.c:164: error: ?TCL_ERROR? undeclared (first use in this function) tcltkimg.c:164: error: (Each undeclared identifier is reported only once tcltkimg.c:164: error: for each function it appears in.) tcltkimg.c:168: error: ?TCL_OK? undeclared (first use in this function) tcltkimg.c: In function ?CreateRplot?: tcltkimg.c:193: error: expected declaration specifiers before ?Tcl_Interp? tcltkimg.c:196: error: expected declaration specifiers before ?Tcl_Obj? tcltkimg.c:198: error: expected declaration specifiers before ?Tk_ImageType? tcltkimg.c:199: error: expected declaration specifiers before ?Tk_ImageMaster? tcltkimg.c:200: error: expected declaration specifiers before ?ClientData? tcltkimg.c:201: warning: type of ?interp? defaults to ?int? tcltkimg.c:201: warning: type of ?objv? defaults to ?int? tcltkimg.c:201: warning: type of ?typePtr? defaults to ?int? tcltkimg.c:201: warning: type of ?master? defaults to ?int? tcltkimg.c:201: warning: type of ?clientDataPtr? defaults to ?int? tcltkimg.c:206: warning: implicit declaration of function ?Tcl_AppendResult? tcltkimg.c:207: error: ?TCL_ERROR? undeclared (first use in this function) tcltkimg.c:215: error: ?RplotMaster? has no member named ?Rdevice? tcltkimg.c:218: error: ?RplotMaster? has no member named ?Rdevice? tcltkimg.c:218: error: ?RplotMaster? has no member named ?image? tcltkimg.c:219: error: ?RplotMaster? has no member named ?width? tcltkimg.c:219: error: ?RplotMaster? has no member named ?height? tcltkimg.c:219: error: ?TCL_OK? undeclared (first use in this function) tcltkimg.c:225: warning: implicit declaration of function ?ckalloc? tcltkimg.c:226: error: ?RplotMaster? has no member named ?interp? tcltkimg.c:227: error: ?RplotMaster? has no member named ?Rdevice? tcltkimg.c:227: error: ?RplotMaster? has no member named ?Rdevice? tcltkimg.c:228: error: ?RplotMaster? has no member named ?haveImage? tcltkimg.c:229: error: ?RplotMaster? has no member named ?image? tcltkimg.c:229: error: ?RplotMaster? has no member named ?image? tcltkimg.c:230: error: ?RplotMaster? has no member named ?width? tcltkimg.c:230: error: ?RplotMaster? has no member named ?width? tcltkimg.c:231: error: ?RplotMaster? has no member named ?height? tcltkimg.c:231: error: ?RplotMaster? has no member named ?height? tcltkimg.c:232: error: ?RplotMaster? has no member named ?instanceCount? tcltkimg.c:233: error: ?RplotMaster? has no member named ?master? tcltkimg.c:234: error: invalid type argument of ?unary *? tcltkimg.c:234: error: ?ClientData? undeclared (first use in this function) tcltkimg.c:234: error: expected ?;? before ?prpm? tcltkimg.c: At top level: tcltkimg.c:257: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?GetRplot? tcltkimg.c:259: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?masterData? tcltkimg.c:260: error: expected identifier or ?(? before ?{? token tcltkimg.c: In function ?DisplayRplot?: tcltkimg.c:300: error: expected declaration specifiers before ?ClientData? tcltkimg.c:307: warning: type of ?clientData? defaults to ?int? tcltkimg.c:320: warning: implicit declaration of function ?Tk_Depth? tcltkimg.c:320: error: ?RplotInstance? has no member named ?tkwin? tcltkimg.c:326: warning: implicit declaration of function ?Tk_GetPixmap? tcltkimg.c:326: warning: implicit declaration of function ?Tk_WindowId? tcltkimg.c:326: error: ?RplotInstance? has no member named ?tkwin? tcltkimg.c:328: warning: implicit declaration of function ?Tk_GetGC? tcltkimg.c:328: error: ?RplotInstance? has no member named ?tkwin? tcltkimg.c:328: warning: assignment makes pointer from integer without a cast tcltkimg.c:329: error: ?RplotMaster? has no member named ?image? tcltkimg.c:330: warning: implicit declaration of function ?Tk_FreeGC? tcltkimg.c:334: error: ?RplotInstance? has no member named ?tkwin? tcltkimg.c:334: warning: assignment makes pointer from integer without a cast tcltkimg.c:342: warning: implicit declaration of function ?Tk_FreePixmap? tcltkimg.c: In function ?FreeRplot?: tcltkimg.c:365: error: expected declaration specifiers before ?ClientData? tcltkimg.c:367: warning: type of ?clientData? defaults to ?int? tcltkimg.c:371: error: ?RplotMaster? has no member named ?instanceCount? tcltkimg.c:372: warning: implicit declaration of function ?ckfree? tcltkimg.c: In function ?DeleteRplot?: tcltkimg.c:394: error: expected declaration specifiers before ?ClientData? tcltkimg.c:395: warning: type of ?masterData? defaults to ?int? tcltkimg.c:398: error: ?RplotMaster? has no member named ?instanceCount? tcltkimg.c:399: warning: implicit declaration of function ?panic? tcltkimg.c:401: error: ?RplotMaster? has no member named ?haveImage? tcltkimg.c:405: error: ?RplotMaster? has no member named ?image? tcltkimg.c:405: error: ?RplotMaster? has no member named ?image? tcltkimg.c: At top level: tcltkimg.c:440: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?RplotImageType? tcltkimg.c: In function ?Rplot_Init?: tcltkimg.c:451: error: expected declaration specifiers before ?Tcl_Interp? tcltkimg.c:452: warning: type of ?interp? defaults to ?int? tcltkimg.c:454: error: ?CONST? undeclared (first use in this function) tcltkimg.c:454: error: expected ?;? before ?char? tcltkimg.c:456: error: ?version? undeclared (first use in this function) tcltkimg.c:456: warning: implicit declaration of function ?Tcl_PkgRequire? tcltkimg.c:456: error: ?TCL_VERSION? undeclared (first use in this function) tcltkimg.c:457: error: ?TCL_ERROR? undeclared (first use in this function) tcltkimg.c:458: error: ?TK_VERSION? undeclared (first use in this function) tcltkimg.c:458: warning: comparison between pointer and integer tcltkimg.c:463: warning: implicit declaration of function ?Tk_CreateImageType? tcltkimg.c:463: error: ?RplotImageType? undeclared (first use in this function) tcltkimg.c:465: warning: implicit declaration of function ?Tcl_PkgProvide? tcltkimg.c: In function ?Rplot_SafeInit?: tcltkimg.c:469: error: expected declaration specifiers before ?Tcl_Interp? tcltkimg.c:470: warning: type of ?interp? defaults to ?int? make: *** [tcltkimg.o] Error 1 ERROR: compilation failed for package ?tkrplot? * removing ?/usr/local/lib/R/site-library/tkrplot? ERROR: dependency ?tkrplot? is not available for package ?RcmdrPlugin.PT? * removing ?/usr/local/lib/R/site-library/RcmdrPlugin.PT? The downloaded packages are in ?/tmp/Rtmp4tjo0X/downloaded_packages? Warning messages: 1: In install.packages() : installation of package 'tkrplot' had non-zero exit status 2: In install.packages() : installation of package 'RcmdrPlugin.PT' had non-zero exit status>-- Brian Lunergan Nepean, Ontario Canada
Dirk Eddelbuettel
2011-Aug-14 19:42 UTC
[R-sig-Debian] Problem installing R Commander plugin...
Start with sudo apt-get install r-cran-tkrplot otherwise read numerous past emails here about the need for matching -dev packages when building from source. Dirk -- Two new Rcpp master classes for R and C++ integration scheduled for New York (Sep 24) and San Francisco (Oct 8), more details are at http://dirk.eddelbuettel.com/blog/2011/08/04#rcpp_classes_2011-09_and_2011-10 http://www.revolutionanalytics.com/products/training/public/rcpp-master-class.php
Brian Lunergan
2011-Aug-15 01:30 UTC
[R-sig-Debian] Problem installing R Commander plugin... (apparently solved)
On Sun, 2011-08-14 at 19:35 -0500, Dirk Eddelbuettel wrote:> Brian, > > On 14 August 2011 at 19:39, Brian Lunergan wrote: > | On Sun, 2011-08-14 at 14:42 -0500, Dirk Eddelbuettel wrote: > | > Start with > | > > | > sudo apt-get install r-cran-tkrplot > | > > | > otherwise read numerous past emails here about the need for matching -dev > | > packages when building from source. > | > > | > Dirk > | > > | > | Evening Dirk: > | > | When I'm using the current edition of R I have found the R-cran packages > | I have access to on the surviving Heron repositories more often than not > | turn out to be too old. I tried that route to pull in r-cran-rgl. When I > | tried to load it with library() the system snarked back that it had been > | built before version 2.10. Sooo... it would appear building from source > | is the open option. Can you suggest which -dev packages I should be > | checking for on my system? If I find and load them will R see and accept > | them or will I need to "reinstall" to get the support in place to build > | tkrplot when I download it for installation? > > Could we please keep the discussion on-list? > > DirkDuly noted, Dirk. I shall post this to the list and CC yourself, reversing your response approach to my original query. To the business at hand. The archive is not super helpful as it is laid out but I did find something that looked like it might help referencing the tk and tcl dev files. Going into synaptic I pulled in three missing items in the 8.4 and 8.5 version group. Since some mention was made about "reninstalling" R to pick up access to them I did a reinstall of r-base. Not sure if it was really called for, but when I called up R in a root terminal window and ran install.packages() the last two bits fell into place and I now have the PT plugin installed and working. Now... Next problem is to get R and java talking to each properly so I get the rjava package on board and by extension the other bits of the TextMining plugin. But that's a question for another day. TTYL... -- Brian Lunergan Nepean, Ontario Canada