To install ns-2.34 on Ubuntu 10.04, install the development files for X Windows plus the g++ compiler:
sudo apt-get install xorg-dev g++ xgraph

If you encounter a compilation problem with otcl, go here.

Advertisements