i have installed fedora 20 x64 successfully and when i try to install ns 2.31 but the following error i encountered.
Quote:
sudo apt-get install libc6-dev linux-libc-dev gcc-4.2 g++
i did this, it terminates successfully,
Quote:
g++ is already the newest version.
libc6-dev is already the newest version.
linux-libc-dev is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cpp-4.2 gcc-4.2-base
Suggested packages:
gcc-4.2-locales gcc-4.2-doc gcc-4.2-multilib libgcc1-dbg libgomp1-dbg
libmudflap0-4.2-dev libmudflap0-dbg
The following NEW packages will be installed:
cpp-4.2 gcc-4.2 gcc-4.2-base
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
after that, i run this command to install
Code:
khan@khan:~/network_simulator/ns2/ns-allinone-2.34$ export CC=gcc-4.2 CXX=g++-4.2 && ./install
but at the end i got some errors, listed below, these are some of last lines of the execution.
Quote:
otcl-1.13 has been installed successfully.
============================================================
* Build Tclcl-1.19
============================================================
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.2
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.2 accepts -g... yes
checking for gcc-4.2 option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... no
checking whether g++-4.2 accepts -g... no
checking how to run the C preprocessor... gcc-4.2 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 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.18... 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.13
checking for libotcl1.13... -L../otcl-1.13 -lotcl
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for zlib.h... -I/usr/include
checking for libz1.1.3... -L/usr/lib -lz
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
creating ./gen
creating ./bin
gcc-4.2 -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBZ1_1_3 -DHAVE_ZLIB_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/usr/include -I/home/khan/network_simulator/ns2/ns-allinone-2.34/otcl-1.13 -I/home/khan/network_simulator/ns2/ns-allinone-2.34/include -I/home/khan/network_simulator/ns2/ns-allinone-2.34/include -I/home/khan/network_simulator/ns2/ns-allinone-2.34/include -o tcl2c++.o tcl2c++.c
rm -f tcl2c++
g++-4.2 -o tcl2c++ tcl2c++.o
make: g++-4.2: Command not found
make: *** [tcl2c++] Error 127
tclcl-1.19 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
help me please !