Error with "Make" in ns2.35
Hi LQ, I am using NS-2.35.
First I run make and I got the following error: Makefile.in is newer than Makefile. You need to re-run configure. false make: *** [Makefile] Error 1 Then I re-run configure by typing ./configure and I got this error: checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes 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... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ANSI C header files... (cached) 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 that g++ can handle -O2... no checking if C++ libraries work without any namespace... no checking if C++ libraries work with namespace std... yes checking if STL works without any namespace... no checking if STL works with namespace std... yes checking should use STL... yes checking for tcl.h... -I../include checking for tclInt.h... -I../include checking for libtcl8.4... no checking for init.tcl... ../lib/tcl8.5 checking for http.tcl... ../lib/tcl8.5/http1.0 checking Tcl http.tcl library... yes checking for tclsh8.4.19... no checking for tclsh8.4... /usr/bin/tclsh8.4 configure: error: Installation of tcl seems incomplete or can't be found automatically. Please correct the problem by telling configure where tcl is using the argument --with-tcl=/path/to/package (perhaps after installing it), or the package is not required, disable it with --with-tcl=no. Can you please help me to fix it? |
You cannot usually do $ ./configure in ns-allinone-2.35/ns-2.35/.
Reconfiguring was for ns-2.34, and earlier versions. Now we just do $ cd ns-allinone-2.35/ && ./install |
Thank you so much.
I run ./install and I got this: Ns-allinone package has been installed successfully. Here are the installation places: tcl8.5.10: /home/mohameed/ns-allinone-2.35/{bin,include,lib} tk8.5.10: /home/mohameed/ns-allinone-2.35/{bin,include,lib} otcl: /home/mohameed/ns-allinone-2.35/otcl-1.14 tclcl: /home/mohameed/ns-allinone-2.35/tclcl-1.20 ns: /home/mohameed/ns-allinone-2.35/ns-2.35/ns nam: /home/mohameed/ns-allinone-2.35/nam-1.15/nam xgraph: /home/mohameed/ns-allinone-2.35/xgraph-12.2 gt-itm: /home/mohameed/ns-allinone-2.35/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns ---------------------------------------------------------------------------------- Please put /home/mohameed/ns-allinone-2.35/bin:/home/mohameed/ns-allinone-2.35/tcl8.5.10/unix:/home/mohameed/ns-allinone-2.35/tk8.5.10/unix into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph. IMPORTANT NOTICES: (1) You MUST put /home/mohameed/ns-allinone-2.35/otcl-1.14, /home/mohameed/ns-allinone-2.35/lib, into your LD_LIBRARY_PATH environment variable. If it complains about X libraries, add path to your X libraries into LD_LIBRARY_PATH. If you are using csh, you can set it like: setenv LD_LIBRARY_PATH <paths> If you are using sh, you can set it like: export LD_LIBRARY_PATH=<paths> (2) You MUST put /home/mohameed/ns-allinone-2.35/tcl8.5.10/library into your TCL_LIBRARY environmental variable. Otherwise ns/nam will complain during startup. After these steps, you can now run the ns validation suite with cd ns-2.35; ./validate For trouble shooting, please first read ns problems page http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive for related posts. How can I complete these steps please? |
Re #3
The text : "Please put /home .. .. IMPORTANT NOTICES: (1) You MUST put /home/.." .... was used ~15 years ago for a "University Computer" only. I.e. you had no write permissions to /usr/. Today we just do $ cd ns-allinone-2.35/ns-2.35/ && sudo make install * 'make install' will copy the executable 'ns' to /usr/local/bin/. And : 'ns' is hard coded to know the location of it`s libraries : ns-allinone-2.35/{ lib/*, bin/* }. Conclusion : Don't do anything. Except for # make install . - |
Thank you so much, Knudfl.
|
All times are GMT -5. The time now is 10:59 AM. |