Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FXRbApp::openDisplay: unable to open display :0.0 #46

Closed
bolandross opened this issue Jun 21, 2018 · 4 comments
Closed

FXRbApp::openDisplay: unable to open display :0.0 #46

bolandross opened this issue Jun 21, 2018 · 4 comments

Comments

@bolandross
Copy link

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

@larskanis
Copy link
Owner

@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.

@bolandross
Copy link
Author

bolandross commented Jun 21, 2018

@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

@idanci
Copy link

idanci commented Jul 10, 2018

Everything I did to run fxruby on Mac

  1. brew install libpng
  2. brew install libtiff
  3. brew install libjpeg
  4. brew cask install xquartz
  5. brew install fox
  6. brew cask install xquartz
  7. gem install fxruby
  8. open -a /Applications/Utilities/XQuartz.app
  9. 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

@AndyObtiva
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants