| 查看: 1305 | 回复: 4 | |||
[求助]
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 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 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 |
» 猜你喜欢
之前让一硕士生水了7个发明专利,现在这7个获批发明专利的维护费可从哪儿支出哈?
已经有5人回复
博士读完未来一定会好吗
已经有29人回复
博士申请都是内定的吗?
已经有5人回复
到新单位后,换了新的研究方向,没有团队,持续积累2区以上论文,能申请到面上吗
已经有12人回复
投稿精细化工
已经有4人回复
高职单位投计算机相关的北核或SCI四区期刊推荐,求支招!
已经有4人回复
导师想让我从独立一作变成了共一第一
已经有9人回复
读博
已经有4人回复
JMPT 期刊投稿流程
已经有4人回复
心脉受损
已经有5人回复
2楼2013-03-26 17:08:49
3楼2013-03-26 20:24:51
|
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
5楼2014-11-19 20:05:38













回复此楼