open the file ns-2.34/otcl-1.13/configure and change the line number 6304 toSHLIB_LD=”gcc -shared” instead of SHLIB_LD=”ld -shared”

Step 6:

Begin ns2.34 installation

$ ./install

The installation runs for a couple of minutes. Don’t get freaked out on seeing the varieties of warnings and messages over there. . Its normal. Don’t close this terminal. We got some important information in the last section of the installation.