Linux @ 29 October 2010, “No Comments”
This is taken from http://www.anand-iyer.com/blog/?p=22 (thanks). The steps are.
1. Install necessary tools for building:
sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3 |
2. It turns out that otcl does not like the version of gcc installed by default in Lucid. So go ahead and change ns-allinone-2.34/otcl-1.13/Makefile.in. Find the line that says:
CC= @CC@ |
and change it to:
CC= gcc-4.3 |
3. Now try doing ‘./install’ from the ns-allinone-2.34 directory. It should work.
Then I added the following in command line
export LD_LIBRARY_PATH=<YOUR_NS_PATH>/ns-allinone-2.34/otcl-1.13:<YOUR_NS_PATH>/ns-allinone-2.34/lib export TCL_LIBRARY=<YOUR_NS_PATH>/ns-allinone-2.34/tcl8.4.18/library export PATH=$PATH:<YOUR_NS_PATH>/ns-allinone-2.34/bin:<YOUR_NS_PATH>/ns-allinone-2.34/tcl8.4.18/unix:<YOUR_NS_PATH>/ns-allinone-2.34/tk8.4.18/unix |
if you want these paths be permanent you must do something in the bashrc file.