【转】Cygwin Problems & Solutions

来源:互联网 发布:淘宝店铺每天怎么打理 编辑:程序博客网 时间:2024/05/22 11:34

摘自:http://blog.sinzy.net/hjk41/entry/7597

 

P:  运行 startxwin.bat 时提示“No Such File or Directory”
S:  可能是没有安装X-Startup-Scripts,重新运行setup.exe,然后选择安装就行了
    也可能是环境变量没有设置好,按上面的设置再检查一遍,注意要把 hct 改成你相应的名字
    另外,应该运行 startxwin.bat ,不能只打 startxwin

P:  运行 ns examples2.tcl 时提示" no such file or directory"
S:  如果是找不到 examples2.tcl 那就是你打 cd /home/hct/ns-allinone-2.28/ns-2.28/ns-tutorial/examples 的时候出了错
    如果是找不到ns,那就是环境变量没设置好

P:  运行 ns examples2.tcl 时提示“nam:  no such file or directory”
S:  看看你的 /home/hct/ns-allinone-2.28/nam-1.11 目录下有没有 nam.exe 文件,有的话就是你的环境变量设置错了,注意要把 nam-1.11 这个目录加到PATH中
    如果没有nam.exe,那就是编译nam时出错了。运行 gcc -dumpversion 看看你的gcc版本,如果是3.4.x,那就好办了。找到 nam-1.11/agent.h ,把它的第73行中的NULL改成0,然后回到nam-1.11目录,运行 ./configure 然后运行 make,等运行完毕,再试试 ns example2.tcl 就应该没问题了
    如果gcc版本不是3.4.x,那就不知道是什么问题了,不过可以肯定是编译出了错,所以换个nam版本试试吧

P: 编译nam时出错:can't find X includes
S: 安装libXt-devel

P: 编译nam时出错:x11/xmu/winutil.h: No such file or directory
S: 安装libXmu-devel