<br />
R version 3.0.0 (2013-04-03) -- "Masked Marvel"<br />
Copyright (C) 2013 The R Foundation for Statistical Computing<br />
Platform: x86_64-unknown-linux-gnu (64-bit)</p>
<p>R is free software and comes with ABSOLUTELY NO WARRANTY.<br />
You are welcome to redistribute it under certain conditions.<br />
Type 'license()' or 'licence()' for distribution details.</p>
<p> Natural language support but running in an English locale</p>
<p>R is a collaborative project with many contributors.<br />
Type 'contributors()' for more information and<br />
'citation()' on how to cite R or R packages in publications.</p>
<p>Type 'demo()' for some demos, 'help()' for on-line help, or<br />
'help.start()' for an HTML browser interface to help.<br />
Type 'q()' to quit R.</p>
<p>> install.packages("Rcmdr")<br />
Installing package into ‘/home/ypchen/R’<br />
(as ‘lib’ is unspecified)<br />
trying URL 'http://ftp.ctex.org/mirrors/CRAN/src/contrib/Rcmdr_1.9-6.tar.gz'<br />
Content type 'application/x-gzip' length 3403229 bytes (3.2 Mb)<br />
opened URL<br />
==================================================<br />
downloaded 3.2 Mb</p>
<p>* installing *source* package ‘Rcmdr’ ...<br />
** package ‘Rcmdr’ successfully unpacked and MD5 sums checked<br />
** libs<br />
gcc -std=gnu99 -I/home/ypchen/R/lib64/R/include -DNDEBUG -I/usr/local/include -fpic -g -O2 -c ismdi.c -o ismdi.o<br />
gcc -std=gnu99 -shared -L/usr/local/lib64 -o Rcmdr.so ismdi.o -L/home/ypchen/R/lib64/R/lib -lR<br />
installing to /home/ypchen/R/Rcmdr/libs<br />
** R<br />
** inst<br />
** byte-compile and prepare package for lazy loading<br />
Warning: S3 methods ‘as.character.tclObj’, ‘as.character.tclVar’, ‘as.double.tclObj’, ‘as.integer.tclObj’, ‘as.logical.tclObj’, ‘as.raw.tclObj’, ‘print.tclObj’, ‘[[.tclArray’, ‘[[<-.tclArray’, ‘$.tclArray’, ‘$<-.tclArray’, ‘names.tclArray’, ‘names<-.tclArray’, ‘length.tclArray’, ‘length<-.tclArray’, ‘tclObj.tclVar’, ‘tclObj<-.tclVar’, ‘tclvalue.default’, ‘tclvalue.tclObj’, ‘tclvalue.tclVar’, ‘tclvalue<-.default’, ‘tclvalue<-.tclVar’, ‘close.tkProgressBar’ were declared in NAMESPACE but not found<br />
Error : .onLoad failed in loadNamespace() for 'tcltk', details:<br />
call: fun(libname, pkgname)<br />
error: Tcl/Tk support is not available on this system<br />
ERROR: lazy loading failed for package ‘Rcmdr’<br />
* removing ‘/home/ypchen/R/Rcmdr’</p>
<p>The downloaded source packages are in<br />
‘/tmp/RtmpggTMRP/downloaded_packages’<br />
Warning message:<br />
In install.packages("Rcmdr") :<br />
installation of package ‘Rcmdr’ had non-zero exit status</p>
<p>
</p>
到底是什么原因呢
单独加载tcltk包的时候也报错
<br />
> library(tcltk)<br />
Error : .onLoad failed in loadNamespace() for 'tcltk', details:<br />
call: fun(libname, pkgname)<br />
error: Tcl/Tk support is not available on this system<br />
In addition: Warning message:<br />
S3 methods ‘as.character.tclObj’, ‘as.character.tclVar’, ‘as.double.tclObj’, ‘as.integer.tclObj’, ‘as.logical.tclObj’, ‘as.raw.tclObj’, ‘print.tclObj’, ‘[[.tclArray’, ‘[[<-.tclArray’, ‘$.tclArray’, ‘$<-.tclArray’, ‘names.tclArray’, ‘names<-.tclArray’, ‘length.tclArray’, ‘length<-.tclArray’, ‘tclObj.tclVar’, ‘tclObj<-.tclVar’, ‘tclvalue.default’, ‘tclvalue.tclObj’, ‘tclvalue.tclVar’, ‘tclvalue<-.default’, ‘tclvalue<-.tclVar’, ‘close.tkProgressBar’ were declared in NAMESPACE but not found<br />
Error: package or namespace load failed for ‘tcltk’<br />
</p>
<br />
> capabilities()["tcltk"]<br />
tcltk<br />
FALSE<br />
</p>