I have tried to install ns 2 on ubunutu 11.04
============================================================
* Testing for Darwin (OS X) environment
============================================================
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Testing for FreeBSD environment
============================================================
FreeBSD not detected
============================================================
* Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for X... (cached) no
checking for float.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strcasecmp... (cached) yes
creating ./config.status
creating Makefile
creating autoconf.h
autoconf.h is unchanged
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c dialog.c
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
gcc -g -c -o ctangle.o ctangle.c
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
gcc -g -o ctangle ctangle.o common.o
gcc -g -c -o cweave.o cweave.c
gcc -g -o cweave cweave.o common.o
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
gcc-4.2 -g -I/usr/local/sgb/include test_io.c gb_io.o -o test_io
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
gcc -I../include -L../lib -DFBSD -o ../bin/itm itm.o geog.o ts.o dfs.o -lm -lgb
gcc -I../include -L../lib -DFBSD -o ../bin/sgb2alt sgb2alt.o -lm -lgb
gcc -I../include -L../lib -DFBSD -o ../bin/edriver edriver.o eval.o -lm -lgb
gt-itm has been installed successfully.
gcc -I../include -L../lib -o ../bin/sgb2comns sgb2comns.o -lm -lgb
gcc -I../include -L../lib -o ../bin/sgb2hierns sgb2hierns.o -lm -lgb
gcc -I../include -L../lib -o ../bin/sgb2ns sgb2ns.o -lm -lgb
sgb2ns has been installed successfully.
============================================================
* Build zlib
============================================================
Building static library libz.a version 1.2.3 with gcc-4.2.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()
Checking for vsnprintf() in stdio.h... No.
WARNING: vsnprintf() not found, falling back to vsprintf(). zlib
can build but will be open to possible buffer-overflow security
vulnerabilities.
Checking for return value of vsprintf()... Yes.
Checking for errno.h... No.
Checking for mmap support... Yes.
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o example.o example.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o adler32.o adler32.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o compress.o compress.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o crc32.o crc32.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o gzio.o gzio.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o uncompr.o uncompr.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o deflate.o deflate.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o trees.o trees.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o zutil.o zutil.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o inflate.o inflate.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o infback.o infback.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o inftrees.o inftrees.c
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o inffast.o inffast.c
ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -o example example.o -L. libz.a
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.18
============================================================
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-4.2
checking whether the C compiler works...
make: *** [example] Error 1
configure: WARNING: unrecognized options: --enable-gcc
configure: error: in `/home/mwk/ns-allinone-2.34/tcl8.4.18/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details
tcl8.4.18 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.
i need to install tcl can any one help me out