can't run emacs


I’m trying to run emacs and I get the following error message…

Cannot connect to X Server 127.1:0
Check the display environment variable or use ‘-d’

I get the same message when I run ‘emacs -d’.

I don’t have X Server installed. I just got the GNU emacs.

How do you setup emacs to run in QNX 6?