在 Fedora 上安装 NCTUns

NCTUns 是由台湾交通大学开发的一种网络模拟与仿真软件,类似的网络模拟器还有 NS2 等。使用 NS2 需要会一些 tcl 脚本,NCTUns 则简单多了,图形界面、用鼠标拖拖就可以做简单的模拟。最近要做 mesh network 方面的模拟,需要用到这个工具。目前 NCTUns 官方只支持 Fedora 版本的 Linux,虽然也有人在 Ubuntu 上成功安装过,不过为了减少麻烦,VPSee 还是从 Fedora 12 开始。

安装必备软件包

更新系统、安装必要软件包:

# yum update
# yum install gcc gcc-c++ make mkinitrd

编译和安装 NCTUns

下载 NCTUns-allinone-linux-2.6.31.6-f12.20100113.tar.gz,解开并运行安装程序:

# tar zxvf NCTUns-allinone-linux-2.6.31.6-f12.20100113.tar.gz
# cd NCTUns-6.0/
# sh install.sh

编译正在进行,如果中途遇到下面问题,则需要安装 readline-devel 和 ncurses-devel:

/home/vpsee/NCTUns-6.0/tools/misc/nctuns-tcsh/ed.screen.c:673: undefined reference to `tgetstr’
tc.func.o: In function `dotermname’:
/home/vpsee/NCTUns-6.0/tools/misc/nctuns-tcsh/tc.func.c:2308: undefined reference to `tgetent’
collect2: ld returned 1 exit status
make: *** [tcsh] Error 1

ERROR: configure or make failed…

# yum install readline-devel ncurses-devel

重新运行安装程序:

# sh install.sh

必须重新启动系统选择 NCTUns (2.6.31-nctuns20091227) 内核启动:

# reboot

运行

重启后运行 NCTUns 会出现下面问题:

$ /usr/local/nctuns/bin/nctunsclient
/usr/local/nctuns/bin/nctunsclient.bin: error while loading shared libraries: 
libqt-mt.so.3: cannot open shared object file: No such file or directory

需要修改 .bashrc 配置文件:

$ vi .bashrc
export NCTUNSHOME=/usr/local/nctuns
export NCTUNS_BIN=/usr/local/nctuns/bin
export NCTUNS_TOOLS=/usr/local/nctuns/tools
export LD_LIBRARY_PATH=/usr/local/nctuns/lib

再次运行 nctunsclient:

$ /usr/local/nctuns/bin/nctunsclient

启动成功后就会看到如下界面:

nctuns

评论 (14 Comments)

  1. 这个是干什么用的呀?做链接么

  2. 做网络模拟和仿真用的。

  3. 官网已经去掉下载链接了,转为商业软件了,你那里还有NCTUns-allinone-linux-2.6.31.6-f12.20100113.tar吗?
    方便给一个地址或者发一个,谢谢。mail:bj1116@163.com

  4. 您好,最近在研究智能交通方面的东西,了解到NCTUns 6.0在VANET,IEEE802.11p方面的作用,但去它的主页看了一下,已经不提供软件下载地址了,你那里还有NCTUns-allinone-linux-2.6.31.6-f12.20100113.tar,请问您能帮我传一份吗?期待您的回复。QQ:326327696

    邮箱:yuantao19870124@163.com

  5. 您好,最近也在研究模拟请问您还有wimaxNCTUns-allinone-linux-2.6.31.6-f12.20100113.tar.gz传一份或方便给一个地址吗?
    mail:vensa21@yahoo.com

  6. 你好,你那边还有NCTUns-allinone-linux-2.6.31.6-f12.20100113.tar,我最近要做这方面仿真,但是现在这个软件不能下载,你方便的话,请给我发一份,我的qq:646472948

  7. 你好,你那边还有NCTUns-allinone-linux-2.6.31.6-f12.20100113.tar,我最近要做这方面仿真,但是现在这个软件不能下载,你方便的话,请给我发一份mail:s1610810@hotmail.com

  8. @Anonymous
    这个软件好像现在商业化了,没有免费的版本可以下载。

  9. 您好,我正在研究这方面的东西,能把NCTUns-allinone-linux-2.6.31.6-f12.20100113.tar.gz软件包发给我吗?email:zttyler@gmail.com,不胜感谢。

  10. Hi , I am in search of NCTUns for my Masters thesis but unfortunately its not at all a free version now, If you kindly provide me the free version of NCTUns I ‘ll be grateful to you. My mail id is anupamjamatia@gmail.com
    Thanks and Regards
    Anupam

  11. how to repair the make failed error

  12. hi,

    i’m trying to install the nctuns on fedora12, andall the steps i have done expect the last step:
    after i type ‘nctunsclient’, it show the same message as you mentioned:

    重启后运行 NCTUns 会出现下面问题:

    /usr/local/nctuns/bin/nctunsclient.bin: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory

    ——————————–
    after trying many methods, i still can not solve this problem…could you please tell more detail about the solution,
    Thank you very much!!!!!!!!!!

  13. where i can download NCTNUS 6.0
    please reply at walimsd@gmail.com

  14. HI
    i am PhD student and i need NCTuns 6.0 version. please send me via my email.
    hathian81@gmail.com

发表评论