你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu Linux 9.10 安装NS2笔记

[日期:2009-12-23] 来源:blog.sina.com.cn/yangyang052328  作者:杨洋 [字体:大 中 小]

解决过程:
cd /home/yyang/ns-allinone-2.33/otcl-1.13
sudo gedit configure.in
把77行处的
        SHLIB_LD="ld -shared"
改为
        SHLIB_LD="gcc -shared"
保存退出,然后
sudo gedit configure
把5518行的
        SHLIB_LD="ld -shared"
改为
        SHLIB_LD="gcc -shared"
保存退出,然后
cd ..
回到目录ns-allinone-2.33下运行
sudo ./install

如果正确安装可以看到提示:
--------------------------------

Please put /home/yyang/ns-allinone-2.33/bin:/home/yyang/ns-allinone-2.33/tcl8.4.18/unix:/home/yyang/ns-allinone-2.33/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/yyang/ns-allinone-2.33/otcl-1.13, /home/yyang/ns-allinone-2.33/lib,
    into your LD_LIBRARY_PATH environment variable.
    If it complains about X libraries, add path to your X libraries
    into LD_LIBRARY_PATH.
    If you are using csh, you can set it like:
        setenv LD_LIBRARY_PATH <paths>
    If you are using sh, you can set it like:
        export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/yyang/ns-allinone-2.33/tcl8.4.18/library into your TCL_LIBRARY environmental
    variable. Otherwise ns/nam will complain during startup.


After these steps, you can now run the ns validation suite with
cd ns-2.33; ./validate

For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款