Hi I did some test on NS2 installation. Here is the result
http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps There is a problem with the current linux-like distribution. Here is the solution http://www.ns2ultimate.com/post/441093095/ns-2-35-works-on-cygwin Also, if you'd like to know about how to setup the initialization file in Linux, please read the following post: http://www.ns2ultimate.com/post/504833450/linux-initialization-files-bash-profile-and-bashrc I hope this will help. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.ece.ubc.ca/~teerawat http://www.t-issariyakul.blogspot.com http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear On Apr 21, 2011, at 8:07 PM, Tobi Oduyemi wrote: > > Hi i'm trying to install ns-2.29 on my linux computer but keep getting the > error below when trying to install ns-2 > > ============================================================ > * Build Tclcl-1.17 > ============================================================ > No .configure file found in current directory > Continuing with default options... > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > checking target system type... i686-pc-linux-gnu > checking for gcc... gcc-4.1 > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc-4.1 accepts -g... yes > checking for gcc-4.1 option to accept ANSI C... none needed > checking whether we are using the GNU C++ compiler... no > checking whether g++-4.1 accepts -g... no > checking how to run the C preprocessor... gcc-4.1 -E > checking for egrep... grep -E > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking for string.h... (cached) yes > checking for main in -lXbsd... no > checking for socket in -lsocket... no > checking for gethostbyname in -lnsl... yes > checking for dcgettext in -lintl... no > checking for getnodebyname in -ldnet_stub... no > checking standard STL is available... no > checking for ranlib... ranlib > checking for snprintf... yes > checking for ANSI C header files... (cached) yes > checking for strtoq... yes > checking for strtoll... yes > checking for long... yes > checking size of long... 4 > checking for __int64_t... no > checking for long long... yes > checking for int64_t... yes > checking which kind of 64-bit int to use... int64_t > checking for tcl.h... -I../include > checking for tclInt.h... -I../include > checking for libtcl8.4... -L../lib -ltcl8.4 > checking for init.tcl... ../lib/tcl8.4 > checking for http.tcl... ../lib/tcl8.4/http1.0 > checking Tcl http.tcl library... yes > checking for tclsh8.4.11... no > checking for tclsh8.4... ../bin/tclsh8.4 > checking for tk.h... -I../include > checking for libtk8.4... -L../lib -ltk8.4 > checking for tk.tcl... ../lib/tk8.4 > checking for otcl.h... -I../otcl-1.11 > checking for libotcl1.11... -L../otcl-1.11 -lotcl > checking for X11 header files > checking for X11 library archive > checking for XOpenDisplay in -lX11... yes > checking for XShmAttach in -lXext... yes > No explicit static compilation flag; setting V_STATIC to "" > checking for dlopen in -ldl... yes > checking for a BSD-compatible install... /usr/bin/install -c > configure: creating ./config.status > config.status: creating Makefile > config.status: creating config.h > config.status: config.h is unchanged > g++-4.1 -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H > -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H > -DHAVE_CONFIG_H -I. -I/home/tobi/Desktop/ns-allinone-2.29/otcl-1.11 > -I/home/tobi/Desktop/ns-allinone-2.29/include > -I/home/tobi/Desktop/ns-allinone-2.29/include > -I/home/tobi/Desktop/ns-allinone-2.29/include -o Tcl.o Tcl.cc > /usr/bin/g++-4.1: not found (hardened-c++ could not find target) > make: *** [Tcl.o] Error 127 > tclcl-1.17 make failed! Exiting ... > See http://www.isi.edu/nsnam/ns/ns-problems.html for problems > > > Any help or solutions on how to correct this would be greatly appreciated. > > Regards >
