Hi, Did you execute "export PATH" in bashrc file after changing PATH?
Best Regards Gang 2010/9/7 Mobin Yazarlou <yazarlo...@gmail.com> > Hi Gang, > Thanks for your answer.I found that those warnings were because of the > following two lines in .bashrc file: > > unset TMP > unset TEMP > > Removing these two directions eliminates warnings. > > After removing all comments and the mentioned directions from .bashrc, I > changed the environment variables this way (thanks T. Issaraiyakul for his > helpful Slides on NS installation): > > NSHOME=~/ns-allinone-2.35-RC6 > OTCL_LIB=${NSHOME}/otcl-1.14 > NS2_LIB=${NSHOME}/lib > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB > export TCL_LIBRARY=${NSHOME}/tcl8.5.8/library > PATH=$PATH:${NSHOME}/ns-2.35:${NSHOME}/nam-1.15 > > And now the response to 'ns' command in Cygwin prompt is as follows: > > mo...@mobin ~ > $ ns > bash: ns: command not found > > I don't know why this happens but I'm pretty sure that 'ns.exe' exists in > 'ns-2.35' folder, which is declared in PATH. > > Is there any suggestion to overcome this problem? > > Thanks, > Mobin > > > > On Mon, Sep 6, 2010 at 7:35 AM, Gang Zhou <whiz...@gmail.com> wrote: > >> It seems your LD_LIBRARY_PATH doesn't set well. >> >> >> the warning message : " ': not a valid identifier >> ': not a valid identifier >> " >> means some lines in your .bashrc file can't be recognized by your shell. >> >> Maybe you should use dos2unix or other editor to convert your .bashrc file >> to unix format. >> >> then relogin ,see if the LD_LIBRARY_PATH variable has been set right . >> >> >> 2010/9/6 Mobin Yazarlou <yazarlo...@gmail.com> >> >> >>> Hello, >>> I've installed "ns-allinone-2.35-RC6" on the latest version of Cygwin >>> (1.7) >>> in WinXP twice but I still get the following error >>> when I try to run NS2 by typing "ns" in cygwin prompt. >>> >>> mo...@mobin ~ >>> $ ns >>> /home/Mobin/ns-allinone-2.35-RC6/ns-2.35/ns.exe: error while loading >>> shared >>> libr >>> aries: ?: cannot open shared object file: No such file or directory >>> >>> >>> The three lines that i've added to .bashrc are these: >>> >>> export >>> >>> LD_LIBRARY_PATH=/home/Mobin/ns-allinone-2.35-RC6/otcl-1.14:/home/Mobin/ns-allinone-2.35-RC6/lib >>> export TCL_LIBRARY=/home/Mobin/ns-allinone-2.35-RC6/tcl8.5.8/library >>> >>> PATH=/home/Mobin/ns-allinone-2.35-RC6/bin:/home/Mobin/ns-allinone-2.35-RC6/tcl8.5.8/unix:/home/Mobin/ns-allinone-2.35-RC6/tk8.5.8/unix >>> >>> And another important thing to mention is the following warnings which >>> appear right after opening Cygwin prompt. >>> >>> ': not a valid identifier >>> ': not a valid identifier >>> >>> mo...@mobin ~ >>> $ >>> >>> Could anyone help me to fix this problem? >>> >>> Thanks, >>> Mobin >>> >> >> >