I'm launching a X server with Xquartz (OSX 10.10.5) using Terminal.app, and I'm trying to connect to a EC2 instance with:##local$ echo $DISPLAY/private/tmp/com.apple.launchd.MO57wSPup1/org.macosforge.xquartz:0##EC2$ ssh -X user@servername$ echo $DISPLAYlocalhost:10.0$ cat /proc/versionLinux version 4.1.10-17.31.amzn1.x86_64 (mockbuild@gobi-build-60008) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) )When I try to launch xclock, I have an X window opening up, but when I try emacs, no window is showing up. For example, if I type emacs, emacs opens inside the terminal. If I try emacs &, the job is stopped.Anyone has an idea why ? I have installed it using :$ sudo yum install emacs$ which emacs/usr/bin/emacs$ emacs --versionGNU Emacs 24.3.1
Emacs X11 Forwarding does not work but xclock does
linux;x11;emacs
Most likely the Emacs you're running was compiled without X support.  As an example, the default Emacs binary in /usr/bin on Mac OS X was definitely built without X support.  To check your binary, start Emacs and then in the *scratch* buffer type:(featurep 'x)and then hit Ctrl+J.  A response of t means you have X support, nil means you don't.