Actually, the first line of the content of my .profile was truncated in the email, so here it is again:
export PATH=$PATH:/Users/behnaz/ns-allinone-2.35/bin:/Users/behnaz/ns-allinone-2.35/tcl8.5.10/unix:/Users/behnaz/ns-allinone-2.35/tk8.5.10/unix:/Users/behnaz/ns-allinone-2.35/nam-1.15/bin export LD_LIBRARY_PATH=/Users/behnaz/ns-allinone-2.35/otcl-1.14:/Users/behnaz/ns-allinone-2.35/lib export TCL_LIBRARY=/Users/behnaz/ns-allinone-2.35/tcl8.5.10/library But basically, once you install the ns2, it is displayed in the terminal that you should configure these environment variables, and their exact values on your system are also given. Best, Behnaz On Oct 1, 2012, at 3:50 PM, Bruno Caceiro <bcace...@gmail.com> wrote: > Hello again, thanks for the help, though it didn't worked as I expected, > since I still get that ns isn't a command found for bash . I copied the code > you gave me , replacing my username, and , for instance the name of the > folder is ns-allinone--RC8, and I changed it all according to what you sent > me. Even made a .profile and saved it in My Users/bcaceiro. Or this profile > should be saved in the ns folder ? > > Thanks again for all the help provided . > Best regards . > > 2012/9/30 <behnaz.bostanip...@unil.ch> > Well,I executed this in the directory > "/Users/behnaz/ns-allinone-2.35/ns-2.35": > > echo “PATH=/Users/behnaz/ns-allinone-2.35/bin:$PATH” > > .bashrc > > where /Users/behnaz is the home directory, also, I created a > ‘.profile’ in my home directory and I put the following > inside it: > > export > PATH=$PATH:/Users/behnaz/ns-allinone-2.35/bin:/Users/behnaz/ns-allinone-2.35/tcl8.5.10/unix:/Users/behnaz/ns-$ > > export > LD_LIBRARY_PATH=/Users/behnaz/ns-allinone-2.35/otcl-1.14:/Users/behnaz/ns-allinone-2.35/lib > > export > TCL_LIBRARY=/Users/behnaz/ns-allinone-2.35/tcl8.5.10/library > > Best regards, > Behnaz > ----- Original Message ----- > Expéditeur: bcaceiro <bcace...@gmail.com> > à: ns-users@ISI.EDU > Sujet: Re: [ns] ns 2.35/4 on MAC OS Mountain Lion (10.8) > Date: Sun, 30 Sep 2012 09:06:24 -0700 (PDT) > > > Hello it worked like charm , it compiled with no errors, > > but now how can I edit the bash profile to make it work ? > > since i tried to do like :ns example.tcl and it doesn't > > recognize anything .. > > > > bostanip wrote: > > > > > > > > > Hi, > > > > > > see this (works for both lion and mouton lion): > > > > > > > > > > > http://old.nabble.com/build-nam-on-mac-OSx-td34431429.html > > > Here is the url for the patch: > > > > > > http://old.nabble.com/file/p34431582/install.osx.patch > > > > > > Best, > > > Behnaz > > > > > > On Sep 30, 2012, at 12:08 PM, bcaceiro > > > <bcace...@gmail.com> wrote: > > >> > > >> > > >> Hello everyone, I've been having huge problems trying > > to install ns-2 on >> my > > >> mac. Since it always fails to compile for tcl, and I > > know is something >> related to x11 libraries . I have > > installed xquartz, and Xcode( witih >> the > > >> command line tools) but probably is something about the > > path or the >> commands > > >> in the install file . Did anyone managed to install it > > ? >> -- > > >> View this message in context: > > >> > > > http://old.nabble.com/ns-2.35-4-on-MAC-OS-Mountain-Lion-%2810.8%29-tp34491383p34491383.html > > >> Sent from the ns-users mailing list archive at > > Nabble.com. >> > > > > > > > > > > > > > -- > > View this message in context: > > > http://old.nabble.com/ns-2.35-4-on-MAC-OS-Mountain-Lion-%2810.8%29-tp34491383p34497283.html > > Sent from the ns-users mailing list archive at Nabble.com. > > > > > > -- > Bruno Caceiro >