[原创Ubuntu下安装NS2.31问题(着急)

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
reachera
帖子: 1
注册时间: 2007-11-16 13:06

[原创Ubuntu下安装NS2.31问题(着急)

#1

帖子 reachera » 2007-11-16 14:07

希望 各位帮帮忙,我在ubuntu7.10下安装NS2.31时出现了下面的提示,我看了一下,应该是没安装上!希望高手帮忙看一下问题在那?不身感激!!!


fanyonglin@Reachera:~/ns-allinone-2.31$ ./install
============================================================
* Testing for Darwin (OS X) environment
============================================================
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** 没有指明目标并且找不到 makefile。 停止。
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
gcc -g -c -o ctangle.o ctangle.c
common.h:36:19: 错误: stdio.h:No such file or directory
ctangle.w:882:20: 错误: ctype.h:No such file or directory
ctangle.w:883:21: 错误: stdlib.h:No such file or directory
common.h:139: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
common.h:140: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
common.h:183: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
common.h:184: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
common.h:185: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
common.h:186: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
common.h:187: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ctangle.w:75: 警告: 与内建函数 ‘strlen’ 类型冲突
ctangle.w: 在函数 ‘main’ 中:
ctangle.w:712: 警告: 隐式声明与内建函数 ‘sprintf’ 不兼容
ctangle.w:97: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w: 在函数 ‘push_level’ 中:
ctangle.w:341: 错误: ‘NULL’ 未声明 (在此函数内第一次使用)
ctangle.w:341: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
ctangle.w:341: 错误: 所在的函数内只报告一次。)
ctangle.w: 在函数 ‘get_output’ 中:
ctangle.w:402: 错误: ‘C_file’ 未声明 (在此函数内第一次使用)
ctangle.w:425: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w: 在函数 ‘flush_buffer’ 中:
ctangle.w:482: 错误: ‘C_file’ 未声明 (在此函数内第一次使用)
ctangle.w:484: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w:486: 错误: ‘stdout’ 未声明 (在此函数内第一次使用)
ctangle.w: 在函数 ‘phase_two’ 中:
ctangle.w:541: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w:547: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w:551: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w:554: 错误: ‘stdout’ 未声明 (在此函数内第一次使用)
ctangle.w:573: 错误: ‘C_file’ 未声明 (在此函数内第一次使用)
ctangle.w:577: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w:561: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w: 在函数 ‘output_defs’ 中:
ctangle.w:607: 错误: ‘NULL’ 未声明 (在此函数内第一次使用)
ctangle.w:612: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
ctangle.w:612: 错误: ‘C_file’ 未声明 (在此函数内第一次使用)
ctangle.w: 在函数 ‘out_char’ 中:
ctangle.w:656: 错误: ‘C_file’ 未声明 (在此函数内第一次使用)
ctangle.w:723: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
ctangle.w:730: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
ctangle.w: 在函数 ‘get_next’ 中:
ctangle.w:1033: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w:1035: 错误: ‘stdout’ 未声明 (在此函数内第一次使用)
ctangle.w:1035: 警告: 隐式声明与内建函数 ‘fwrite’ 不兼容
ctangle.w:1131: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w:1133: 警告: 隐式声明与内建函数 ‘fwrite’ 不兼容
ctangle.w: 在函数 ‘scan_section’ 中:
ctangle.w:1357: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
ctangle.w:1357: 错误: ‘stdout’ 未声明 (在此函数内第一次使用)
ctangle.w: 在函数 ‘skip_limbo’ 中:
ctangle.w:1508: 警告: 隐式声明与内建函数 ‘sscanf’ 不兼容
ctangle.w: 在函数 ‘print_stats’ 中:
ctangle.w:1527: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
make: *** [ctangle.o] 错误 1
cweb failed to make, but it's optional
chmod: 无法访问‘cweave’: No such file or directory
chmod: 无法访问‘ctangle’: No such file or directory
ln: 正在创建指向 ‘/home/fanyonglin/ns-allinone-2.31/cweb/cweave’ 的符号链接 ‘cweave’: File exists
ln: 正在创建指向 ‘/home/fanyonglin/ns-allinone-2.31/cweb/ctangle’ 的符号链接 ‘ctangle’: File exists
============================================================
* 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
/bin/sh: ctangle: not found
make: *** [gb_io.c] 错误 127
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 gcc.
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.
gcc -O3 -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o example.o example.c
example.c:8:19: 错误: stdio.h:No such file or directory
example.c:12:22: 错误: string.h:No such file or directory
example.c:13:22: 错误: stdlib.h:No such file or directory
example.c: 在函数 ‘test_compress’ 中:
example.c:64: 警告: 隐式声明与内建函数 ‘strlen’ 不兼容
example.c:67: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:67: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:67: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
example.c:67: 错误: 所在的函数内只报告一次。)
example.c:67: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:69: 警告: 隐式声明与内建函数 ‘strcpy’ 不兼容
example.c:72: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:72: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:75: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:76: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:78: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
example.c: 在函数 ‘test_gzio’ 中:
example.c:94: 警告: 隐式声明与内建函数 ‘strlen’ 不兼容
example.c:99: 错误: ‘NULL’ 未声明 (在此函数内第一次使用)
example.c:100: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:100: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:101: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:105: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:106: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:109: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:110: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:117: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:118: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:120: 警告: 隐式声明与内建函数 ‘strcpy’ 不兼容
example.c:123: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:124: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:127: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:128: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:130: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
example.c:135: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:137: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:141: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:142: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:146: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:147: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:152: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:153: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:156: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:157: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:159: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
example.c: 在函数 ‘test_deflate’ 中:
example.c:175: 警告: 隐式声明与内建函数 ‘strlen’ 不兼容
example.c:182: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:182: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:182: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:190: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:190: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:197: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:197: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:201: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:201: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c: 在函数 ‘test_inflate’ 中:
example.c:214: 警告: 隐式声明与内建函数 ‘strcpy’ 不兼容
example.c:225: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:225: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:225: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:231: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:231: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:235: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:235: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:238: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:239: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:241: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
example.c: 在函数 ‘test_large_deflate’ 中:
example.c:260: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:260: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:260: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:271: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:271: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:273: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:274: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:282: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:282: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:289: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:289: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:293: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:294: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:297: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:297: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c: 在函数 ‘test_large_inflate’ 中:
example.c:310: 警告: 隐式声明与内建函数 ‘strcpy’ 不兼容
example.c:320: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:320: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:320: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:327: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:327: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:331: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:331: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:334: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:335: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:337: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
example.c: 在函数 ‘test_flush’ 中:
example.c:350: 警告: 隐式声明与内建函数 ‘strlen’ 不兼容
example.c:357: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:357: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:357: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:364: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:364: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:371: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:371: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:374: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:374: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c: 在函数 ‘test_sync’ 中:
example.c:389: 警告: 隐式声明与内建函数 ‘strcpy’ 不兼容
example.c:399: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:399: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:399: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:405: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:405: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:409: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:409: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:413: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:415: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:418: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:418: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:420: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
example.c: 在函数 ‘test_dict_deflate’ 中:
example.c:438: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:438: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:438: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:442: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:442: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:449: 警告: 隐式声明与内建函数 ‘strlen’ 不兼容
example.c:453: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:454: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:457: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:457: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c: 在函数 ‘test_dict_inflate’ 中:
example.c:470: 警告: 隐式声明与内建函数 ‘strcpy’ 不兼容
example.c:480: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:480: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:480: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:490: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:491: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:496: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:496: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:500: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:500: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:503: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:504: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:506: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
example.c: 在函数 ‘main’ 中:
example.c:524: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:524: 错误: ‘stderr’ 未声明 (在此函数内第一次使用)
example.c:525: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
example.c:528: 警告: 隐式声明与内建函数 ‘fprintf’ 不兼容
example.c:531: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
example.c:534: 警告: 隐式声明与内建函数 ‘calloc’ 不兼容
example.c:541: 警告: 隐式声明与内建函数 ‘exit’ 不兼容
make: *** [example.o] 错误 1
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.14
============================================================
loading cache ./config.cache
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 whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 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.


谢谢啦!
networker2
帖子: 1
注册时间: 2008-12-09 11:57

Re: [原创Ubuntu下安装NS2.31问题(着急)

#2

帖子 networker2 » 2008-12-14 10:09

你可能是没有安装 gcc 把gcc安上后会少一些错误
sudo apt-get install build-essential
or
sudo apt-get install gcc
回复