Can't compile image after upgrading to OS X Yosemite
Actually, X11 is not erased but moved to /opt/X11.
So, the simplest solution would probably be to manually add the symbolic link from /usr/X11 to /opt/X11:
sudo ln -s /opt/X11 /usr/X11
Fixed after installing the latest XQuartz: http://xquartz.macosforge.org/landing/
The problem seems to be related to the fact that X11 was erased during the upgrade.
Same problem after installing OSX Catalina ...
But now, you need to make a link like this:
sudo ln -s /opt/X11 /private/var/select/X11
(The link /usr/X11
points to /private/var/select/X11
and can't be modified.)