Quote:
Originally Posted by kazim425
gedit ~/.bashrc
copy and paste this
# LD_LIBRARY_PATH
OTCL_LIB=/home/salady/ns2new/otcl-1.13
NS2_LIB=/home/salady/ns2new/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/salady/ns2new/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/salady/ns2new/bin:/home/salady/ns2new/tcl8.4.14/unix:/home/salady/ns2new/tk8.4.14/unix
NS=/home/salady/ns2new/ns-2.31/
NAM=/home/salady/ns2new/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM
source ~/.bashrc
restart system
if still it says no ns found
then just run ./install again when installation completes try ns from propmt
if still there is problem send me the screenshots of the steps you do
|
hello...
i dont know how to send the screenshots..there is no option to attach a file...
i have the install file in the path /home/salady/ns2new/ns-2.31/allinone
i logged in as root and gave gedit ~/.bashrc
i gave
# LD_LIBRARY_PATH
OTCL_LIB=/home/salady/ns2new/ns-2.31/otcl-1.13
NS2_LIB=/home/salady/ns2new/ns-2.31/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/salady/ns2new/ns-2.31/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/salady/ns2new/ns-2.31/bin:/home/salady/ns2new/ns-2.31/tcl8.4.14/unix:/home/salady/ns2new/ns-2.31/tk8.4.18/unix
NS=/home/salady/ns2new/ns-2.31/allinone(is this right?)
NAM=/home/salady/ns2new/ns-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM
i gave source ~/.bashrc
restarted n tried ns
bash:ns command not found
cd /home/salady/ns2new/ns-2.31/allinone
./install...
it gave the following..
[root@localhost allinone]# ./install
============================================================
* Testing for Darwin (OS X) environment
============================================================
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
./install: line 280: cd: ./xgraph-12.1: No such file or directory
./install: line 281: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
./install: line 300: cd: ./cweb: No such file or directory
ns-allinone unable to install cweb for you. Please install it manually. cweb is used by sgb to create sgblibrary needed by scenario-generator. But this will not affect the use of ns as such, so continue..
============================================================
* Build Stanford GraphBase
============================================================
./install: line 331: cd: ./sgb: No such file or directory
Unable to create sgb library. This library is used by gt-itm and so for scenario generators. If you already have sgblib (possible if you are on solaris,sunos or freebsd platforms) you may still be able to run gt-itm. so continuing..
============================================================
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* Build zlib
============================================================
./install: line 390: cd: ./zlib-1.2.3: No such file or directory
./install: line 392: ./configure: No such file or directory
Zlib-1.2.3 configuration failed, but it's optional, so continuing ...
============================================================
* Build tcl8.4.14
============================================================
./install: line 412: cd: ./tcl8.4.14/unix: No such file or directory
./install: line 419: ./configure: No such file or directory
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see
www.Scriptics.com
to see if they have a fix for your platform.
[root@localhost allinone]#
i really dont undersatnd wats wrong...where should be the install file present..tell me the path exactly....anyways thanks a lot for ur reply...