Error: Make sure that your X server is running and that $DIS

Questions about Wine on macOS.
Locked
Swarup
Level 2
Level 2
Posts: 22
Joined: Sat May 16, 2009 7:29 pm

Error: Make sure that your X server is running and that $DIS

Post by Swarup »

I have been researching this problem all day. I have installed Xcode, Macports, and Wine. Now I want to install some windows programs via wine, but I get the same error message every time:

Code: Select all

$ wine /Users/[username]/Desktop/[newprogram]/Windows/Setup/Install.exe
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
fixme:win:DisableProcessWindowsGhosting : stub
So I tried to research and fix the problem, and came up with this at http://speedofmac.com/tutorials/how-to-use-wine.html:
When running winecfg or using Wine some other way, you might come up with some of the following errors:

- err:x11drv:process_attach failed to load libX11.6.dylib: dlopen(libX11.6.dylib, 266): image not found
- Application tried to create a window, but no driver could be loaded.
- Make sure that your X server is running and that $DISPLAY is set correctly.

Luckily, there's an easy fix:

Open your .profile file (run open ~/.profile in Terminal)
Enter the following into your .profile file:

DYLD_FALLBACK_LIBRARY_PATH=/usr/X11/lib
export DYLD_FALLBACK_LIBRARY_PATH

Save and close .profile
Restart Terminal.app
That's it!
I tried it but it didn't help; I still get the same error. What can I do to fix the problem?
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Error: Make sure that your X server is running and that

Post by doh123 »

get the latest version of XQuartz... install it, and restart, then try again...

but Macports should have built a version for you. Do you have an XQuartz or X11 app installed by Macports that will open and work? (can look in /Applications/Macports or in /Applications/Utilties)
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Error: Make sure that your X server is running and that

Post by doh123 »

BosleyJester wrote:Where can we get the latest version? Help please.
its the first thing returned on a google search... but anyways... its here
http://xquartz.macosforge.org/
Locked