//
archives

installation

This category contains 5 posts

Install some packages before installing ns-2

Attention: before you install ns-2 , be sure that you have installed following packages: tcl8.4 tk8.4 tcl8.4-dev tk8.4-dev I found that NS-2 all-in-one package is lack of the check to Xmu library when install NAM. The “configure” script of NAM doesn’t check Xmu library but can generate the “makefile”. Thus, you assume that everything is … Continue reading

Installing the Network Simulator NS2 on Ubuntu/Debian

Source: http://wiki.splitbrain.org/ns2 Note For the wget commands below get the correct download URLs from the sites linked at http://www.isi.edu/nsnam/ns/ns-build.html#pieces In the following I will download and unpack all needed sources to a directory named ns2install $> mkdir ns2install $> cd ns2install Debian Libraries Beside the usual stuff for compiling programs like gcc, g++ and make … Continue reading

Install ns2.26 in Ubuntu

Objective: install ns-allinone-2.26 in Ubuntu 5.10 Breezy Software needed: gcc-3.3, g++-3.3 (ns2.26 cannot be compiled with gcc >= 4.0), build-essential, autoconf, automaken, libxt-dev (tk need it), libxmu-dev (nam need it) To do: 1. apt-get install build-essential 2. apt-get install gcc-3.3 g++-3.3 autoconf automake-1.9 libxt-dev 3. go to /usr/bin, del softlink to gcc, g++ 4. ln … Continue reading

How to install ns-2 onto Ubuntu Linux

Get the allinone source. $ cd ~myname $ wget http://www.isi.edu/nsnam/dist/ns-allinone-2.28.tar.gz Modify build for GDB debugger. $ tar xzf ns-allinone-2.28.tar.gz $ cd ns-allinone-2.28 $ vim install Add the –enable-symbols option on line 408 so, ./configure –enable-gcc –disable-shared –prefix=$CUR_PATH || die “tcl8.3.2 configuration failed! Exiting …” becomes, ./configure –-enable-symbols –enable-gcc –disable-shared –prefix=$CUR_PATH || die “tcl8.3.2 configuration failed! … Continue reading

Download and install NS-2 on RedHat

Download ns-2.27 from: http://www.isi.edu/nsnam/dist/ns-allinone-2.27.tar.gz To install ns 2.27 in Red hat, there are following steps: 1. tar -xzf * 2. ./install change .bash_profile and add some environment variables. put /home/ns-allinone-2.27/bin:/home/ns-allinone-2.27/tcl8.4.5/unix:/home/ns-allinone-2.27/tk8.4.5/unix into your PATH environment; so that you’ll be able to run itm/tclsh/wish/xgraph. IMPORTANT NOTICES: You MUST put /home/ns-allinone-2.27/otcl-1.8, /home/ns-allinone-2.27/lib, into your LD_LIBRARY_PATH environment variable. If … Continue reading