Home

Advertisement

How to Install Qt3 in Ubuntu

  • Aug. 15th, 2008 at 2:23 PM
wondering
sudo apt-get install libqt3-mt-dev qt3-designer qt3-dev-tools

Tags:

How to Install NS-2 on Ubuntu

  • Apr. 10th, 2008 at 4:14 AM
wondering
from http://alkautsarpens.wordpress.com/2008/02/05/install-ns231-for-ubuntu-gutsy-710/

$ tar -xzvf ns-allinone-2.33.tar.gz
$ cd ns-allinone-2.33
$ sudo apt-get install build-essential autoconf automake libxmu-dev

Now run this command :
$./install

$ gedit ~/.bashrc

    Add the following lines to the end of it. Remember replace
    “/home/networklab/ns/” by something like “/home/yourname/”
    ——————————————————————————————–
    # LD_LIBRARY_PATH
    OTCL_LIB=/home/networklab/ns/ns-allinone-2.33/otcl-1.13
    NS2_LIB=/home/networklab/ns/ns-allinone-2.33/lib
    X11_LIB=/usr/X11R6/lib
    USR_LOCAL_LIB=/usr/local/lib
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_
    LIB:$USR_LOCAL_LIB

    # TCL_LIBRARY
    TCL_LIB=/home/networklab/ns/ns-allinone-2.33/tcl8.4.14/library
    USR_LIB=/usr/lib
    export TCL_LIBRARY=$TCL_LIB:$USR_LIB

    # PATH
    XGRAPH=/home/networklab/ns/ns-allinone-2.33/bin:/your/path/
    ns-allinone-2.33/tcl8.4.14/unix:/your/path/ns-allinone-2.33/tk8.4.14/unix
    NS=/home/networklab/ns/ns-allinone-2.33/ns-2.33/
    NAM=/home/networklab/ns/ns-allinone-2.33/nam-1.13/
    PATH=$PATH:$XGRAPH:$NS:$NAM
    ————————–


Let it take effect immediately:
$ source ~/.bashrc

Note: if ns unsuccessfully. you can restart your X windows, or reboot your system, to make it work Now,the installation has been completed. then try:

$ ns

Then a “%” will appear on the screen.type “exit” to quit the mode and back to “$”

Validation :
$ cd ns-2.33
$ ./validate

Tags: