[ns] Compiling ns-2.27 on a 64-bit machine
Sita S. Krishnakumar
sita at ece.gatech.edu
Tue Aug 28 13:23:18 PDT 2007
Following your suggestion, I have successfully compiled ns-2.27 on a
64-bit machine. I built ns-allinone-2.31 completely. Then I replaced
ns-2.31 directory with ns-2.27, fixed minor problems and built it
successfully. Now I am able to run my tcl scripts in a 64-bit environment.
Thanks a lot for your help.
> Sita S. Krishnakumar wrote:
>> I successfully built 2.31 in 64-bit environment. All I had to do was fix
>> the path to lib64 in a few places. Once that built, I decided to
>> the changes in ns-2.27 directory. After a few changes, it got more
>> complicated with template kind of declarations and static type casting.
>> I put a halt to that.
>> Then I decided I would try to force ns-allinone-2.27 to build as a 32
>> on a 64 bit machine. I used the -m32 flag with gcc to achieve this.
>> this I was able to build tcl and tk. It did complain that the output
>> be unsuitable for x86_64 environment. But otcl did not even build. I do
>> not know if it is more architecture dependent.
>> I use sensor code from NRL which works in 2.27. I am aware of other
>> who have tried it in 2.28, 2.29 and have not had success. This is my
>> reason to stick to 2.27.
>> Do you have any other suggestions for me? As always, thanks for your
> I will look at it tomorrow. In general, I would suggest you will be
> better off starting with ns-allinone-2.31, and then put in ns-2.27 into
> that environment and work out the problems once you have working
> otcl/tclcl libraries.
More information about the Ns-users