Daniel wrote: > I tried to install on my Intel based MacBook Pro the > ns2-allinone-2.29.3-Precompiled-UniversalBinary-Intel-Mac package that I > found here > <http://nsnam.isi.edu/nsnam/index.php/Downloading_and_installing_ns-2>. > I tried to run a simple tcl example script ( /ns-2.29/tcl/ex/simple.tcl ), > but I had this error running the NAM part of the simulator: > > running nam... > nam: couldn't connect to display ":0.0" > > Maybe I have to change some settings, but I don't know where they are. > Could someone help me??
This doesn't seem to be a problem with ns-2 but Unix which Mac OS uses. Basically, this error shows up when you don't have an X server (which is, IIRC, actually called client in the X terminology) running. So are you sure you're having an X server running? I don't know if that's default on Mac OS, don't know too much about it. Can you open any other GUI application from the shell you're trying to start nam from? (like xterm?) If not, that would support my theory that something with your Unix-MAC-GUI chain is broken...
