24小时热门版块排行榜    

查看: 1552  |  回复: 4

sdzzz

银虫 (初入文坛)

[求助] Win7下NS2 2.35安装求助 已有1人参与

从网上搜了一些文章,开始安装。
系统是Win7 64位,下载了Cygwin2.7.17,然后按照网上的指南,安装cygwin时选上了所列出的组件包选项:
gcc   gcc-g++   gcc4   gcc4-g++   gawk   gnuplot   gzip   make   patch   perl   tar   
win32api
diffutils
X-startup-scripts
xorg-x11-base   xorg-x11-bin   xorg-x11-devel   xorg-x11-bin-dlls   
xorg-x11-bin-lndir xorg-x11-etc   xorg-x11-fenc   xorg-x11-fnts   xorg-x11-libs-data   
xorg-x11-xwin
libxt-devel
libXmu-devel
libX11-devel
其他选默认。
另外,win32api没有在列表中找到,但是有w32api,有三条。不知道是不是应该选择这个?
2013/03/26 10:43:32 Adding required dependency w32api-headers: Selecting version 3.0b_svn5591-1 for installation.
2013/03/26 10:43:32 Adding required dependency w32api-runtime: Selecting version 3.0b_svn5591-1 for installation.
安装时,提示一个错误信息:
pango1.0.sh  exit code 1
点击确定,完成安装。
然后,根据教材,把ns2-allinone-2.35.tar.gz拷贝放入cygwin用户目录下,解压,install,然后,出错。
下面是安装信息:
==============
$ ./install
==
* Testing for Darwin (OS X) environment
==
* Testing for Cygwin environment
==
Cygwin detected
Note: Cygwin install is still considered EXPERIMENTAL
Checking Cygwin version is >= 1.7.1... 1.7.17 (should be ok)
Checking filesystems are mounted as UNIX filetype... yes
Checking default mode is binmode... yes
Checking legitimate login name... ok
Checking legitimate path name... ok
Checking for gcc4... ok
Checking for gcc4-g++... ok
Checking for gawk... ok
Checking for tar... ok
Checking for gzip... ok
Checking for make... ok
Checking for patch... ok
Checking for perl... ok
Checking for w32api... ok
Checking for diff... ok
Checking for X... Checking for xorg-server... ok
Checking for xinit... ok
Checking for libX11-devel... ok
Checking for libXmu-devel... ok
Patching Tcl/Tk for Cygwin.
The original tcl8.5.10/generic/tcl.h is backed up as tcl8.5.10/generic/tcl.h.orig
The original tk8.5.10/generic/default.h is backed up as tk8.5.10/generic/default.h.orig
Patching sgb for Cygwin.
The original sgb/Makefile is backed up as sgb/Makefile.orig
Setting executable format to .exe...
==
* Testing for FreeBSD environment
==
FreeBSD not detected
==
* Build XGraph-12.2
=
configure: error: expected an absolute directory name for --prefix: ..
make  all-am
make[1]: 进入目录“/home/Fenrir/ns-allinone-2.35/xgraph-12.2”
gcc -DHAVE_CONFIG_H -I.         -g    -MT xgraph.o -MD -MP -MF .deps/xgraph.Tpo -c -o xgraph.o xgraph.c
/usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe: error while loading shared libraries: cygmpfr-4.dll: cannot open shared object file: No such file or directory
Makefile:370: recipe for target `xgraph.o' failed
make[1]: *** [xgraph.o] Error 1
make[1]: 离开目录“/home/Fenrir/ns-allinone-2.35/xgraph-12.2”
Makefile:250: recipe for target `all' failed
make: *** [all] Error 2
Can not create xgraph; But xgraph is an optional package, continuing...
==
* Build CWeb
==
Making cweb
gcc -g   -c -o ctangle.o ctangle.c
/usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe: error while loading shared libraries: cygmpfr-4.dll: cannot open shared object file: No such file or directory
: recipe for target `ctangle.o' failed
make: *** [ctangle.o] Error 1
cweb failed to make, but it's optional
chmod: 无法访问"cweave.exe": No such file or directory
chmod: 无法访问"ctangle.exe": No such file or directory
==
* Build Stanford GraphBase
==
Making sgb
if test -r gb_io.ch; then ctangle gb_io.w gb_io.ch; else ctangle gb_io.w; fi
This is CTANGLE, Version 3.64 (TeX Live 2012/Cygwin)
*1*8*10*21*28*38*43
Writing the output files: (gb_io.c)..
(test_io.c)
(gb_io.h)
Done.
(No errors were found.)
cc -g -I/usr/local/sgb/include  -DDATA_DIRECTORY=\"/usr/local/sgb/data/\" -c gb_io.c
/usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe: error while loading shared libraries: cygmpfr-4.dll: cannot open shared object file: No such file or directory
Makefile:105: recipe for target `gb_io.o' failed
make: *** [gb_io.o] Error 1
Unable to create sgb library, but it's optional, so continuing...
==
* Build GT-ITM
==
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
==
* Build zlib
===
Checking for gcc...
Building static library libz.a version 1.2.3 with cc.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
  WARNING: snprintf() not found, falling back to sprintf(). zlib
  can build but will be open to possible buffer-overflow security
  vulnerabilities.
Checking for return value of sprintf()... No.
  WARNING: apparently sprintf() does not return a value. zlib
  can build but will be open to possible string-format security
  vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
cc -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H   -c -o example.o example.c
/usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe: error while loading shared libraries: cygmpfr-4.dll: cannot open shared object file: No such file or directory
: recipe for target `example.o' failed
make: *** [example.o] Error 1
Zlib make failed, but it's optional Continue ...
--
* Build tcl8.5.10
--
./install: line 409: autoconf: command not found
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
tcl8.5.10 configuration failed! Exiting ...
Tcl is not part of the ns project.  Please see www.Scriptics.com
to see if they have a fix for your platform.
==
是不是还缺少什么必须的应用?
后来又尝试完全安装cygwin ,大概10多G,再安装,一堆的错误信息,比如什么函数不匹配什么的。
谁能告诉我如何才能正常安装?
谢谢!
回复此楼

» 收录本帖的淘帖专辑推荐

WSN_IOT_CPS

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

aideshifei

金虫 (初入文坛)

【答案】应助回帖

感谢参与,应助指数 +1
楼主去找tw的柯志亨老师吧,另外win7下我建议楼主采用虚拟机,没有特殊要求,ns采用2.29稳定版本
2楼2013-03-26 17:08:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

sdzzz

银虫 (初入文坛)

引用回帖:
2楼: Originally posted by aideshifei at 2013-03-26 17:08:49
楼主去找tw的柯志亨老师吧,另外win7下我建议楼主采用虚拟机,没有特殊要求,ns采用2.29稳定版本

谢谢!
2.29版您有下载链接吗?
3楼2013-03-26 20:24:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

sdzzz

银虫 (初入文坛)

http://sourceforge.net/projects/ ... e/ns-allinone-2.29/

ns-allinone-2.29.3.tar.gz 2006-05-27 68.6 MB
ns-allinone-2.29.2.tar.gz 2005-12-17 68.3 MB
4楼2013-03-26 20:29:31
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

lyrjsyt4526

新虫 (初入文坛)

【答案】应助回帖

柯志亨写的一本书,我的就是win7安装成功了
5楼2014-11-19 20:05:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 sdzzz 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 科研孤儿太难了 +14 我4大白菜 2026-08-20 15/750 2026-08-20 22:33 by 袁向阳007
[基金申请] 言之凿凿,明天官网会通知放榜? +15 医学老男孩 2026-08-20 17/850 2026-08-20 20:35 by CaoLG
[基金申请] 时间戳又变了 +12 wuchongjun 2026-08-20 17/850 2026-08-20 20:05 by spzhao
[基金申请] 今天系统多次维护,明天很可能放榜! +10 zju2000 2026-08-16 11/550 2026-08-20 20:02 by cl479861084
[基金申请] 只有每年这种时候来逛逛小木虫 +21 yaoyewhu2008 2026-08-20 22/1100 2026-08-20 17:03 by yaoyewhu2008
[基金申请] 重要消息,中午系统在维护 +11 yuleib84 2026-08-18 12/600 2026-08-20 11:09 by xskun
[基金申请] 今天基金会出结果吗?20260819 +14 kkkl_v 2026-08-19 15/750 2026-08-20 08:21 by sunzitan
[基金申请] filecode,4个jtjc了 +11 ziyangfang 2026-08-19 13/650 2026-08-19 21:28 by aasahr
[教师之家] 为什么余额宝的年化利率越来越低?主要原因有哪些? +5 瞬息宇宙 2026-08-15 5/250 2026-08-19 20:23 by super2002521
[基金申请] 今天放榜没戏了吧 +4 yuleib84 2026-08-19 5/250 2026-08-19 19:52 by hhs666
[基金申请] 今天放榜吗? +14 布布和一二 2026-08-19 15/750 2026-08-19 18:07 by gltch
[基金申请] filecode=后面第一个是大写字母 +10 wangze12014 2026-08-14 12/600 2026-08-19 16:56 by 苦难博士
[基金申请] 2027广东省杰青 +4 奶牛小黑 2026-08-15 10/500 2026-08-19 11:02 by wanfengnew
[基金申请] 朋友圈看到的 +6 wangzilk 2026-08-18 8/400 2026-08-19 10:55 by Haru815
[基金申请] 什么时候开奖? +6 CrisMessi 2026-08-18 6/300 2026-08-19 08:06 by Equinoxhua
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
[论文投稿] 投稿咨询 +4 wwm09 2026-08-17 6/300 2026-08-18 15:36 by wwm09
[基金申请] 感觉是下周放榜了 +6 angus9576 2026-08-17 11/550 2026-08-17 23:57 by angus9576
[精细化工] 招聘 金属平磨液,抛光液研发工程师 +3 小天0311 2026-08-14 3/150 2026-08-16 07:31 by H9PLUS
[基金申请] 各位道友,我要去昆明玩几天,回来见。 +7 Tide man 2026-08-14 8/400 2026-08-15 01:11 by arzu_hma
信息提示
请填处理意见