LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 7152|回复: 11

我怎么知道缺的文件属于哪个包?

[复制链接]
发表于 2003-3-11 22:23:31 | 显示全部楼层 |阅读模式
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts kconfig.tk
make[1]: Entering directory `/usr/src/kernel-source-2.4.20/scripts'
cat header.tk >> ./kconfig.tk
./tkparse < ../arch/i386/config.in >> kconfig.tk
echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk
echo "set ARCH \"i386\"" >> kconfig.tk
cat tail.tk >> kconfig.tk
chmod 755 kconfig.tk
make[1]: Leaving directory `/usr/src/kernel-source-2.4.20/scripts'
wish -f scripts/kconfig.tk
make: wish:命令未找到
make: *** [xconfig] 错误 127
……………………………………………………………………………

这个时候需要安装什么包?
发表于 2003-3-11 22:53:54 | 显示全部楼层
知道文件名但不知文件在哪个包可用
apt-file search wish
(记得在安装了apt-file后,先运行一下apt-file update)

解决这类问题auto-apt可能是更好的方案:
http://linuxsir.cn/forum.php?mod=viewthread&tid=22642

请多读置顶帖!
发表于 2003-3-12 06:00:32 | 显示全部楼层
wish is a interpreter of tcl/tk ( Yes, I do like scripting ), please checkout your tcl/tk package instead of "wish".
now, you have a lot of "TK"'s variantes, such as perl/TK, very cool to build a GUI under X. People always think to write GUI should use java, GTK+, QT, and they don't even know that 12 years ago, we have already use a lot of Tcl/TK to write them, and even more, you can mixer C code with TCL/TK......
发表于 2003-3-12 12:02:21 | 显示全部楼层
werix:用apt-file search xxx的方法也能获得有关安装tcl/.tk的提示,但該方法搜索出的包太多,不容易判断到底装哪个好,如是不知道某个文件属于哪个包,还有别的什么高效的方法解决这个问题吗?
发表于 2003-3-12 12:50:36 | 显示全部楼层
上packages.debian.org
在最下面那一栏里填wish,选上你的debian版本(stabel,unstalbe,testing)
点search

这够easy了吧
wish是可执行文件,看结果里有没有/usr/bin/wish**
???有几个结果???
那没办法,谁叫debian里/usr/bin/wish是个link呢
一般最高版本或次高版本就对了,目前wish指向tk8.4,但在我的机器上也有tk8.3
确定是哪一个文件,后面就是它所属的包

其它文件,尤其是编译软件缺开发包,用这方法最好了
发表于 2003-3-13 01:06:21 | 显示全部楼层
I'm using:
apt-cache search tk8
but I think Carlos's method should be more easy, since we couldnot know tk's version in advance.
 楼主| 发表于 2003-3-14 00:13:17 | 显示全部楼层
Debian:/usr/src/linux# make xconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts kconfig.tk
make[1]: Entering directory `/usr/src/kernel-source-2.4.20/scripts'
cat header.tk >> ./kconfig.tk
./tkparse < ../arch/i386/config.in >> kconfig.tk
echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk
echo "set ARCH \"i386\"" >> kconfig.tk
cat tail.tk >> kconfig.tk
chmod 755 kconfig.tk
make[1]: Leaving directory `/usr/src/kernel-source-2.4.20/scripts'
wish -f scripts/kconfig.tk
#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?
#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?
#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?
#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?
#?#?#?#?#?#?#?#?#?#?#?#?#?usr/lib/tcl8#?#?#?#?lib/tcl8#?#?
#?#?usr/librar#?#?#?librar#?#?#?tcl8#?4.2/librar#?#?#?usr/lib/tcl8
#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#
?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?
#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?
#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?
#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?scripts/kconfig.tk#?#?ta#?#?
#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?#?
#?#?#?#?#?#?#?make: *** [xconfig] 错误 1

谢谢大家的提醒,直接用 apt 找确实有很大的难度啊。在我的 unstable 上,安装了 tk8.0 就可以工作了,但是在执行 make xconfig 之前必需设定 LC_ALL=en_US,否则会出现上面这些提示。类似的提示在 wine 配置的时候也会出现。
发表于 2003-3-14 16:14:33 | 显示全部楼层
tk的老bug,都几年了,跟中文不兼容
我的环境都只设个LANG不设LC_ALL的 (最近换成了LANG=C LC_CTYPE=zh_CN.GBK,去他奶奶的中文界面,我还把/usr/share/locale/zh_CN/LC_MESSAGES/*.mo全删了) ;)
发表于 2004-10-25 12:32:24 | 显示全部楼层
不是吧


我喜欢用中文界面
发表于 2004-10-25 13:38:58 | 显示全部楼层
中文是必须的,如果要给mm用的话
不过实在是麻烦。所以最后干脆给mm买了iBook
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表