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.

:)

11 comments:

ns2 said...

Thanks for the info.

I got the same problem also at the beginning..

Scube said...

sahni has a blog.. sahni has a blog !

:)

Ravemz said...

@saurav

I think you are missing something somewhere.
You can gimme a contact info on yahoo or gtalk. I shall msg you there.

tc

Unknown said...

Help!

I got into the same problem as Saurav:
do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'

Do you have any input on what sould I do?

Thank you!

Stan

bbold said...

hi all,
I also got same problems:
do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'

what can i do now? if anybody knows, help please?

Suranjit said...

I changed according to your suggestion but still it's not working. Really need some help on that. What should I do? I have install ns2.29.

Anonymous said...

THanks, point to point answer

Anonymous said...

Thanks man!...

Unknown said...

i made the changes in the files but how to clear the old config files?where are they exactly?

Ravemz said...

I don't know if this information still is relevant. But by clearing old config files I meant, run a make clean and install again.

Unknown said...

but when i make clean i get this error:
no rule to make target clean

i tried to make clean in otc1.11