- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- NS installing problems
Hello everyone
I installed ns 2.31 without any problem. but I have a problem on installing ns allinone 2.28.(I use centos5)
At first i received this error:
*”checking system version (for dynamic loading)… ./configure: line
7624: syntax error near unexpected token ‘)’
./configure: line 7624: ‘ OSF*)’
tcl8.3.2 configuration failed! Exiting …
Tcl is not part of the ns project. Please see http://www.Scriptics.com to see
if they have a fix for your problem.”
and I found a solution in Internet:
“The problem lies in how bash 3.1.x and 4.x.x parse the configure file. This
will simply pass through bash 3.0.x and lower versions. So in order to make
things work changed the following lines
tcl: file tcl8.x.x/unix/tcl.m4.
tk: file tk8.x.x/unix/tcl.m4.
otcl: file otcl-1.x/configure.in.
to:
system=MP-RAS-`awk ‘ { print $3 } ‘/etc/.relid`
Now after changing the configuration files you will have
to delete older configure file and any cache if it exists in the respective
folders. After that do not forget to run autoconf from command line in the
respective folders to generate a fresh configure file.”
i changed the three above files then i run autoconf (without deleting any configuration file!)
root@localhost unix]# autoconf
and i saw this error:
“configure.in:199: error: do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS’
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.”
and now i don’t now how solve this.
can anybody help me?
regards,
Generally ns2 is only tested on some specific version of Unix variants (like Red Hat Linux). But after particular release of ns2 version, research people around the world may give a patch file (a script π‘ which will automatically fixes ns2 for installing it in a different variant of Unix/Linux π ).
Patching a ns2 version for particular Linux variant is usually will not be a simple task π . Further even after successful compilation, we may face different kinds of problems while running the simulator.
β‘ If you are a beginner and having short time to complete your assignment or project, then try ns2 on a standard tested version of linux (for example, ns2.28 will install successfully on Red Hat Linux 9 without the necessity of patching. Simularly, some new version of ns2-s will work on some new linux variants without the necessity of patching – refer the ns2 home page)
β‘ Finally, I donβt see any readymade patch available for centos5 for any versions of ns2.
If you are very specific about ns2.28 on centos5 then confirm it again in this thread.