Installing ns-2.34 on Ubuntu 11.10 Oneiric Ocelot

Sebelumnya baca tulisan ini dulu, lalu bedanya disini ..

Kalo udah ketemu dengan tulisan seperti ini, maka kamu udah berhasil menginstallnya  

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

Nam has been installed successfully.
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.11:      /home/pcraven/ns-allinone-2.29/{bin,include,lib}
tk8.4.11:               /home/pcraven/ns-allinone-2.29/{bin,include,lib}
otcl:           /home/pcraven/ns-allinone-2.29/otcl-1.11
tclcl:          /home/pcraven/ns-allinone-2.29/tclcl-1.17
ns:             /home/pcraven/ns-allinone-2.29/ns-2.29/ns
nam:    /home/pcraven/ns-allinone-2.29/nam-1.11/nam
xgraph: /home/pcraven/ns-allinone-2.29/xgraph-12.1
gt-itm:   /home/pcraven/ns-allinone-2.29/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns

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

Please put /home/myusername/ns-allinone-2.29/bin:/home/myusername/ns-allinone-2.29/tcl8.4.11/unix:/home/myusername/ns-allinone-2.29/tk8.4.11/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/myusername/ns-allinone-2.29/otcl-1.11, /home/myusername/ns-allinone-2.29/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/myusername/ns-allinone-2.29/tcl8.4.11/library into your TCL_LIBRARY environmental
    variable. Otherwise ns/nam will complain during startup.

(3) [OPTIONAL] To save disk space, you can now delete directories tcl8.4.11 
    and tk8.4.11. They are now installed under /home/myusername/ns-allinone-2.29/{bin,include,lib}

After these steps, you can now run the ns validation suite with
cd ns-2.29; ./validate

For trouble shooting, please first read ns problems page 
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.
 

Kemudian lanjut dengan perintah berikut

cd ns-2.29
./validate

Proses validasi ini memakan waktu yang cukup lama. Setelah proses ini selesai, coba kamu ketik *ns* di terminal. Kalo muncul tanda *%* maka itu artinya kamu sudah sukses menginstallnya.
Sekarang lanjut coba running file .tcl yang kamu punya atau kalo belum punya bisa coba dengan bawaan dari ns-2.34


cd ns-allinone/ns-2.34
ns simple.tcl 
kalo kemudian muncul note seperti ini 

ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"
maka coba lakukan perintah berikut

cd ns-allinone-2.34/nam-1.14/
sudo make install

lalu kemudian ulangi untuk mencoba merunning file .tcl yang kamu punya.

Leave a Reply