FXRbApp::openDisplay: unable to open display :0.0
bolandross opened this issue · 4 comments
Hey folks,
I just successfully installed fxruby on OS X El Capitan 10.11.6 by using MacPorts and getting the Ruby Gem as it was explained in the installation notes here on the GitHub site.
I then switched to the examples folder, but instantly got the error message:
FXRbApp::openDisplay: unable to open display :0.0
After doing some online research, I saw that a running XQuartz server is necessary to make things work. So I wonder: why isn't this part of the installation then? Or was it, and I had to restart first, after installing fxruby via MacPorts?
If yes, then I would ask you to put it in the installation notes, because this might confuse newbies like me! :D
@bolandross Thank you for opening this issue!
I test fxruby on Windows and Linux for every release, but I'm unable to test it on MacOS. I just don't have a Mac. I think you're talking about this wiki page? https://github.com/lylejohnson/fxruby/wiki/Setting-Up-a-Mac-OS-X-Build-Environment
It would be great, if you could update the instructions on this wiki page! You should be able to edit it.
@larskanis Hey, thanks for responding so quickly.
I am happy if I can help somehow.
For this issue, I found out that the easiest solution would be to just add xorg-server
as a dependency for the MacPorts rb-fxruby
port.
Please let me know if you can do this. Otherwise, I would add it to the wiki page, explaining how to install XQuartz as the final step.
Best regards
Everything I did to run fxruby on Mac
- brew install libpng
- brew install libtiff
- brew install libjpeg
- brew cask install xquartz
- brew install fox
- brew cask install xquartz
- gem install fxruby
- open -a /Applications/Utilities/XQuartz.app
- ruby examples/hello.rb
Not sure if it's relevant for you since you are using MacPorts but for those who use brew and receive this error
FXRbApp::openDisplay: unable to open display :0.0
these steps may help
Just sharing a change in 2021 for addressing FXRbApp::openDisplay: unable to open display :0.0
on the Mac:
brew install fox
brew install xquartz
gem install fxruby
open -a /Applications/Utilities/XQuartz.app
ruby examples/hello.rb