ZZ:Linux内核编译错误wish error

make: wish:命令未找到  
make: *** [xconfig] 错误 127
uClinux
tk8.5a5
tcl8.5a5
fedora core 3 4 5 6
//*-*-*-*-*-*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-
经过一整夜的奋斗,终于把这个问题解决鸟!!!
//-----问题:(我们用代码说话)
//-----想用make xconfig 配置 uClinux时老是出错
[root@localhost uClinux-dist]# make xconfig
config/mkconfig > config.in
make -C /home/special/uClinux-dist/config/scripts tkparse
make[1]: Entering directory `/home/special/uClinux-dist/config/scripts'
make[1]: “tkparse”是最新的。
make[1]: Leaving directory `/home/special/uClinux-dist/config/scripts'
ARCH=dummy /home/special/uClinux-dist/config/scripts/tkparse < config.in > config.tmp
cat /home/special/uClinux-dist/config/scripts/header.tk >> ./config.tk
cat config.tmp >> config.tk
rm -f config.tmp
echo "set defaults \"/dev/null\"" >> config.tk
echo "set help_file \"config/Configure.help\"" >> config.tk
cat /home/special/uClinux-dist/config/scripts/tail.tk >> config.tk
chmod 755 config.tk
make: wish:命令未找到
make: *** [xconfig] 错误 127
//-----注我用的是Fedora core 5的系统
//-----经Google找到了这个问题和两个东西有关 "tk"和"tcl"
//-----在一个外国论坛上找到了下面这个回贴:
/*
  '/usr/bin/wish' is included in the tk package while wishx is from tclX.
  Do you have all the necessary development packages installed?
*/
//----再看一下系统里确实没有这俩个东西,只能下去
//----找到它老家去(tk8.5a5   tcl8.5a5)
// http://www.tcl.tk/software/tcltk/downloadnow85.html
//把这两个文件下下来(都是3MB多的),装上去
//下面是进目录和配置tk的命令和提示,tcl 是一个样子的
//***************************************************************************************
[root@localhost special]# ls
Desktop   skyeye-bin  tk8.5a5       其它的文件
help.txt  tcl8.5a5    uClinux-dist  源代码
[root@localhost special]# cd tk8.5a5
[root@localhost tk8.5a5]# cd unix
[root@localhost unix]# ./configure --prefix=/usr/
.
.
[root@localhost unix]#make install
.
.
//---我直接装在了/usr/目录下了,好做链接-----------
//因为默认生成的的文件名是wish8.5,所以要做一个链接
[root@localhost uClinux-dist]# ln /usr/bin/wish8.5 /usr/bin/wish
//根据你安装目录调整(make xconfig 调的是wish)
//最后make xconfig 后,对话框式的配置界面就出来了。
//截了个图,但没法传上来。
//反正呢,是搞好了。学了不少
//------------------------------------------------
希望对你有用,
如果觉的兄弟我不容易,就顶一下。
让我知道这个东西有用。

你可能感兴趣的:(linux)