Tar zxvfns-allinone-2.35.tar.gz
CD ns-allinone-2.35
./install
A problem occurred:
1.make: * * * [TK3D.O] Error 1
tk8.5.10 make failed! Exiting ...
Installing Libx11-dev can solve the problem
sudo apt-get install Libx11-dev
2.can ' t find X includes
otcl-1.14 Configuration failed! Exiting ...
Installing Libxt-dev can solve the problem
sudo apt-get install Libxt-dev
3.make:g++: Command not found
Make: * * [tcl2c++] Error 127
tclcl-1.20 make failed! Exiting ...
First input g++ See g++ have been installed, originally my g++ is not installed well if not by the installation
sudo apt-get install g++
Finally, install the settings environment variable under/home/user edit. BASHRC
Export ns_home=/home/chenkai/ns/ns-allinone-2.35
Export path= $NS _home/nam-1.15: $NS _home/tcl8.5.10/unix: $NS _home/tk8.5.10/unix: $NS _home/bin: $PATH
Export ld_library_path= $NS _home/tcl8.5.10/unix: $NS _home/tk8.5.10/unix: $NS _home/otcl-1.14: $NS _home/lib: $LD _ Library_path
Export tcl_library= $NS _home/tcl8.5.10/library
Enter the source. BASHRC to make the environment variable valid.
Finally verify NS.
Input NS in console
%
Displays the installation success.