[ns] installation problem4
H. Elfeky
hmhef.z1 at gmail.com
Sat Apr 5 08:41:03 PDT 2008
hi mohamed,
1st of that is a linux installation problem, but anyway:
u dont have to go to etc/ folder, just the default folder which is usually
/home/yourusername
type: gedit .bashrc
add this to the file, assuming the folder of installation is
/home/yourusername/ns-allinone-2.31/
#LD_LIBRARY_PATH
OTCL_LIB=~/ns-allinone-2.31/otcl-1.13
NS2_LIB=~/ns-allinone-2.31/lib
# X11_LIB=/usr/X11R6/lib
# USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$OTCL_LIB:$NS2_LIB
# TCL_LIBRARY
TCL_LIB=~/ns-allinone-2.31/tcl8.4.14/library
# USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB
# PATH
PATH=$PATH:~/ns-allinone-2.31/bin:~/ns-allinone-2.31/tcl8.4.14/unix:~/ns-allinone-2.27/tk8.4.14/unix
this is what i have and it is currently working, the guide i used to do this
was a bit different than what is up there, please search for that guide, and
if u found any different details, email it.
On Sat, Apr 5, 2008 at 2:00 AM, <ns-users-request at isi.edu> wrote:
>
> salam alikom
>
> To set environment of ns2
> I go to /etc folder and type
>
>
> vi ~/.bashrc
>
> Add the following lines to the end of it.
>
> # LD_LIBRARY_PATH
> OTCL_LIB=/usr/src/ns-allinone -2.31/otcl-1.13
> NS2_LIB=/usr/src/ns-allinone-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=/usr/src/ns-allinone-2.31/tcl8.4.14/library
> USR_LIB=/usr/lib
> export TCL_LIBRARY=$TCL_LIB:$USR_LIB
>
> # PATH
>
> XGRAPH=/usr/src/ns-allinone-2.31/bin:/your/path/ns-allinone-2.31/tcl8.4.14/unix:/your/path/ns-allinone-2.31/tk8.4.14/unix
> NS=/usr/src/ns-allinone-2.31/ns-2.31/
> NAM=/usr/src/ns-allinone-2.31/nam-1.13/
> PATH=$PATH:$XGRAPH:$NS:$NAM
>
> Afterthat I reboot my linux(mandrake10)
> And run ns2 by type
> #ns
> In the shell but ns2 don't run
> What is wrong in this?
> Help me
> Gazak allah khiran
>
>
More information about the Ns-users
mailing list