Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have the wine software on my mac and I have a little problem here:

I try running my windows executable and I get this error in the console:

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. err:ole:apartment_createwindowifneeded CreateWindow failed with error 126

I have my DISPLAY set to 0.0 and WINEPREFIX set to x.

Please show me how to fix this with exact code/steps because I am new to this.

Thanks!

share|improve this question

migrated from stackoverflow.com Jul 29 '11 at 12:40

This question came from our site for professional and enthusiast programmers.

    
What OS version are you using? Are you trying to launch from Terminal.app? –  mipadi Feb 1 '11 at 5:01
    
Mac OS 10.6.6 I am trying to run windows executables. –  Dan the Man Feb 1 '11 at 14:27
    
and I am running it by just double clicking it. and it opens WineHelper –  Dan the Man Feb 1 '11 at 14:28

2 Answers 2

See this SuperUser question DISPLAY on OSX is not 0.0 . It is set by the startup and you should not set the variable manually.

share|improve this answer

You don't have X11 installed on your computer. It is available on the OS X install CD.

share|improve this answer
    
If he was able to install Wine, he has X11. Unless he opted out of installing it. @DantheMan Do you have the X11 application in Applications>Utlities? –  daviesgeek Sep 18 '11 at 16:33
    
I had the same kind of error and it turned out I didn't have X11 installed. –  sashoalm Sep 27 '11 at 14:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.