Installer NS2 all-ine-one sur ubuntu

stmery Messages postés 3 Statut Membre -  
stmery Messages postés 3 Statut Membre -
Comment installer ns2 all-in-one sur ubuntu aidez moi c'est important!

1 réponse

  1. stmery Messages postés 3 Statut Membre
     
    1. Téléchargement et installation de ns-allinone-2.31

    -Télécharger la source sur le site sourceforge.net
    Wget https://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.31/ns-allinone-2.31.tar.gz/download?use_mirror=iweb&download=&failedmirror=nchc.dl.sourceforge.net

    -decompresser avec la commande tar xvfz

    - Pour lancer l'installation exécuter : ./install

    Résultat
    Ns-allinone package has been installed successfully.
    Here are the installation places:
    tcl8.4.14: /home/sam/ns-allinone-2.31/{bin,include,lib}
    tk8.4.14: /home/sam/ns-allinone-2.31/{bin,include,lib}
    otcl: /home/sam/ns-allinone-2.31/otcl-1.13
    tclcl: /home/sam/ns-allinone-2.31/tclcl-1.19
    ns: /home/sam/ns-allinone-2.31/ns-2.31/ns
    nam: /home/sam/ns-allinone-2.31/nam-1.13/nam
    xgraph: /home/sam/ns-allinone-2.31/xgraph-12.1
    gt-itm: /home/sam/ns-allinone-2.31/itm, edriver, sgb2alt, sgb2ns, sgb2comns, s gb2hierns

    -------------------------------------------------------------------------------- --

    Please put /home/sam/ns-allinone-2.31/bin:/home/sam/ns-allinone-2.31/tcl8.4.14/u nix:/home/sam/ns-allinone-2.31/tk8.4.14/unix
    into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

    IMPORTANT NOTICES:

    (1) You MUST put /home/sam/ns-allinone-2.31/otcl-1.13, /home/sam/ns-allinone-2.3 1/lib,
    into your LD_LIBRARY_PATH environment variable.
    If it complains about X libraries, add path to your X libraries
    into LD_LIBRARY_PATH.
    If you are using csh, you can set it like:
    setenv LD_LIBRARY_PATH <paths>
    If you are using sh, you can set it like:
    export LD_LIBRARY_PATH=<paths>

    (2) You MUST put /home/sam/ns-allinone-2.31/tcl8.4.14/library into your TCL_LIBR ARY environmental
    variable. Otherwise ns/nam will complain during startup.
    After these steps, you can now run the ns validation suite with
    cd ns-2.31; ./validate

    2. Définition des variables d'environnement

    Complétez votre environnement selon le message affiché en fin d'installation, par exemple
    gedit ~/.bashrc
    export PATH=$PATH:/home/sam/ns-allinone-2.31/bin:/home/sam/ns-allinone-2.31/tcl8.4.14/unix:/home/sam/ns-allinone-2.31/tk8.4.14/unix
    export LD_LIBRARY_PATH=/home/sam/ns-allinone-2.31/otcl-1.13:/home/sam/ns-allinone-2.31/lib:/usr/X11R6/lib
    export TCL_LIBRARY=/home/sam/ns-allinone-2.31/tcl8.4.14/library
    source ~/.bashrc : pour prendre en compte les modification
    NB: l'étape décrite ci-dessus est important, sinon vous ne pouvez pas exécuter avec ns avec succès
    3. Validation de l'installation

    Après ces étapes il faut lancer la validation de ns
    cd ns-2.31
    ./validate
    0