hi dear experts,

I am just installing ns-allinone-2.32 package  in kubuntu, following the 
installing instruction, which is decribed in  
http://nsnam.isi.edu/nsnam/index.php/Installing_ns2.31_on_Ubuntu7.04.

The installing process of the package is successful. But in the next 
step, the changing of my environment variance in bashrc file cannot be 
recognized by my system.

Following is the content of the bashrc file:

# This line was appended by KDE
# Make sure our customised gtkrc file is loaded.
export GTK2_RC_FILES=$HOME/.gtkrc-2.0

# LD_LIBRARY_PATH
OTCL_LIB=/data/bzhang/work/ns-allinone-2.31/otcl-1.13
NS2_LIB=/data/bzhang/work/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=/data/bzhang/work/ns-allinone-2.31/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/your/path/ns-allinone-2.31/bin:/data/bzhang/work/ns-allinone-2.31/tcl8.4.14/unix:/data/bzhang/work/ns-allinone-2.31/tk8.4.14/unix
NS=/data/bzhang/work/ns-allinone-2.31/ns-2.31/
NAM=/data/bzhang/work/ns-allinone-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

when I tried to source this file by "$ source ~/.bashrc", I got such 
error message from the shell:

[EMAIL PROTECTED]:bzhang/work/ns-allinone-2.32] 109) source ~/.bashrc
export: Command not found.
OTCL_LIB=/data/bzhang/work/ns-allinone-2.31/otcl-1.13: Command not found.
NS2_LIB=/data/bzhang/work/ns-allinone-2.31/lib: Command not found.
X11_LIB=/usr/X11R6/lib: Command not found.
USR_LOCAL_LIB=/usr/local/lib: Command not found.
Bad : modifier in $ ($).

can anyone help me to fix this problem.

Thanks a lot.

B. Zhang



Reply via email to