Friday, April 28, 2006

Problem in Installing NS 2.29.2-allinone

And I started my project work after a long break with a hope that this time I will get it done, well last time the excuse I made ( for not being able to do it ) was the older version of NS ( ver. 2.28 ). So I began with downloading NS 2.29.2-allinone pack and ran ./install. It stopped in between with a configure error and it was in the tcl module :

"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 www.Scriptics.com to see
if they have a fix for your problem."

So after analyzing the configure files in the following directories I could find the culprit and the solution:

  • tcl: file tcl8.x.x/unix/tcl.m4.
  • tk: file tk8.x.x/unix/tcl.m4.
  • otcl: file otcl-1.x/configure.in.

The line generating the problem was :

system=MP-RAS-`awk ' { print $3 } '/etc/.relid'`

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 I changed the above line to:

system=MP-RAS-`awk ' { print $3 } '/etc/.relid`

You will have to take following steps in order to bring the changes into effect:
Remove the second last character ( ' ) from the line and do this for all the three files above. 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.

Now all I had to do was hit ./install again and I just hope with this new installation I could make some progress in my project.

:)