我正在尝试从支持 的源代码构建 R-3.2.1 tcltk
,但我尝试的任何操作都不起作用,因为我进入了 R:
> capabilities("tcltk")
tcltk
FALSE
我正在运行 Debian 8,我已经安装了tcl-dev tk-dev bwidget tk-table
软件包。这是一个有趣的输出:
$ ./configure --with-tcltk | grep "tcl\|tk"
checking for tclConfig.sh... no
checking for tclConfig.sh in library (sub)directories... no
checking for tkConfig.sh... no
checking for tkConfig.sh in library (sub)directories... no
checking for tcl.h... no
config.status: creating src/library/tcltk/DESCRIPTION
config.status: creating src/library/tcltk/Makefile
config.status: creating src/library/tcltk/src/Makefile
我确实没有任何[tcl|tk]Config.sh
文件,但我已经检查过
/usr/include/tcl8.6/tcl.h
/usr/include/tcl8.6/tk.h
/usr/include/tcl8.6/tcl-private/generic/tcl.h
/usr/include/tcl8.6/tk-private/generic/tk.h
/usr/lib/tcltk/
/usr/lib/tcltk/x86_64-linux-gnu/
/usr/lib/tcltk/x86_64-linux-gnu/tk8.6/
确实存在于我的系统上。还有什么问题吗?
(这是我读过的两个有趣的网页:
- http://r.789695.n4.nabble.com/Where-is-the-tcltk-package-td3434915.html
- https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Tcl_002fTk
)
答案1
您可能需要将configure
脚本指向您的配置脚本:
./configure --with-tcltk --with-tcl-config=/usr/lib/tclConfig.sh --with-tk-config=/usr/lib/tkConfig.sh
tcl-dev
这些分别由 Debian 8和Debian 8提供tk-dev
。