ns2 error for .bashrc file

283 views
Skip to first unread message

Aditya Lodha

unread,
Apr 2, 2010, 12:10:39 AM4/2/10
to Linux User Group @ IIT Delhi
hello,

i installed ns-allinone-2.34 on ubuntu9.10 and ubuntu9.04 both.

i made following changes to the .bashrc file,
-->
"
# LD_LIBRARY_PATH
OTCL_LIB=/home/adi/ns-allinone-2.34/otcl-1.13
NS2_LIB=/home/adi/ns-allinone-2.34/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/adi/ns-allinone-2.34/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/adi/ns-allinone-2.34/bin:/home/adi/ns-allinone-2.34/
tcl8.4.18/unix:/home/adi/ns-allinone-2.34/tk8.4.18/unix:/home/adi/ns-
allinone-2.34/xgraph-12.1/
NS=/home/adi/ns-allinone-2.34/ns-2.34/
NAM=/home/adi/ns-allinone-2.34/nam-1.14/
export PATH=$PATH:$XGRAPH:$NS:$NAM
"

now when i try to do --> "source ~/.bashrc", I get this message -->
"bash: :/usr/X11R6/lib:/usr/local/lib: No such file or directory".

now i don't know what to do.
can you please help?

thanking you.
Aditya Lodha

narendra sisodiya

unread,
Apr 2, 2010, 1:55:52 AM4/2/10
to iit...@googlegroups.com
On Fri, Apr 2, 2010 at 9:40 AM, Aditya Lodha <adil...@gmail.com> wrote:
hello,

i installed ns-allinone-2.34 on ubuntu9.10 and ubuntu9.04 both.

i made following changes to the .bashrc file,
-->
"
# LD_LIBRARY_PATH
OTCL_LIB=/home/adi/ns-allinone-2.34/otcl-1.13
NS2_LIB=/home/adi/ns-allinone-2.34/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


This is the source of error.. Basically, it should be in one single line
like this,

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
I have already replied in previous mail with modified bashrc file.

 
# TCL_LIBRARY
TCL_LIB=/home/adi/ns-allinone-2.34/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/adi/ns-allinone-2.34/bin:/home/adi/ns-allinone-2.34/
tcl8.4.18/unix:/home/adi/ns-allinone-2.34/tk8.4.18/unix:/home/adi/ns-
allinone-2.34/xgraph-12.1/
NS=/home/adi/ns-allinone-2.34/ns-2.34/
NAM=/home/adi/ns-allinone-2.34/nam-1.14/
export PATH=$PATH:$XGRAPH:$NS:$NAM
"

now when i try to do --> "source ~/.bashrc", I get this message  -->
"bash: :/usr/X11R6/lib:/usr/local/lib: No such file or directory".

now i don't know what to do.
can you please help?

thanking you.
Aditya Lodha

--
LUG@IITD - http://tinyurl.com/ycueutm

To unsubscribe, reply using "remove me" as the subject.



--
┌─────────────────────────┐
│    Narendra Sisodiya ( नरेन्द्र सिसोदिया )
│    Society for Knowledge Commons
│    Web : http://narendra.techfandu.org
└─────────────────────────┘

sri harsha

unread,
Apr 2, 2010, 2:53:32 AM4/2/10
to iit...@googlegroups.com
thnx i got ur point...
--
with regards,
M.SRIHARSHA
09711193253
Reply all
Reply to author
Forward
0 new messages