The problem is that even though you have Cygwin you do not have an X environment to execute X applications as NAM. The solution to this problem, would be to install (in addition to cygwin), the KDE ebvironment for Windows, that co-operates with cygwin.
In this way you will have an X desktop, which will provide you with the appriopriate $DISPLAY variable for your X environment. NAM is an X windows application, so it must have an X Desktop (environment) to run. I use KDE with cygwin in my Windows NS-2 machines successfully. You can find it here: http://kde-cygwin.sourceforge.net/. However, please note that you need to have Windows 2000 or XP in order to be able to install the KDE Desktop. After the installation of KDE you will be able to execute ns and run your scripts, via the KDE desktop by opening a Terminal program. Also note that KDE requires to already have installed cygwin, on top of which will be installed. Then you execute KDE to load the desktop and from there you execute a terminal program (through the Graphical Menus) to have access to the bash shell. On 2/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ---------- Forwarded message ---------- From: "Hailun Tan" <[EMAIL PROTECTED]> To: "Mohammed Abu-Khadra" <[EMAIL PROTECTED]> Date: Fri, 3 Feb 2006 11:00:08 +1100 (EST) Subject: Re: [ns] problem running examples !!! easy!!! type startxwin.bat in cygwin terminal, which will lead you to another terminal... There you can use nam!!! > [ns] problem running examples !!! > > Hi i have a problem in running some basic examples in ns-2 ... am > using ns-2 (v. 2.29) on cygwin for windows !! here is the result from > running the example: > $ ns example1b.tcl > [EMAIL PROTECTED] /usr/local > $ nam: no display name and no $DISPLAY environment variable -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications IT Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] Phone: +30 2310 891 830, Fax: +30 2310 857 794 ----------------------------------------------