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.

:)

8 comments:

ns2 said...

Thanks for the info.

I got the same problem also at the beginning..

SidSeth said...

sahni has a blog.. sahni has a blog !

:)

Saurav said...

Hi,
I tried to implement the changes according to the way given, but while running autoconf the following message comes :
configure :4495:error:do not use LIBOBJS directly,use AC_LIBOBJ(see section 'AC_LIBOBJ vs LIBOBJS'


I got this message while updating the files
tcl: file tcl8.x.x/unix/tcl.m4.
&
tk: file tk8.x.x/unix/tcl.m4.

but there was no problem with configure.in
otcl: file otcl-1.x/configure.in.

I still tried to ./install but there was some other problem ...I forgot 2 note it down ..if its needed I will provide
Hoping to hear soon ...

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

Saurav said...

its prionko@gmail.com do add me up

Stanislava 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

Batbold 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?

Ecstatic 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.