ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please help with why am getting the error message of: Error: Can't open display:
on running ddd on cygwin.
Saw a site after googling, but that too not helpful.
Another site, gave at 2:32 the command: export DISPLAY=:0
But, that command is unclear to me, as the error instead changed to just: Error: Can't open display: :0
Edit: Have installed xorg-server, and xinit, as stated in the point #15, here.
This is shown in the second attachment.
But, still the same problem persists.
to use graphical environment you need to run an X server (even on windows). So start it https://x.cygwin.com/docs/ug/using.html
and you will have a valid display.
to use graphical environment you need to run an X server (even on windows). So start it https://x.cygwin.com/docs/ug/using.html
and you will have a valid display.
Have installed xorg-server on cygwin, apart form xinit, as stated in my earlier post.
There is no 'X server' package, in the list of packages available in cygwin too!
Seems from your post that need run X-server, on Windows.
Tried to run XWinserver on windows, but lead nowhere. The file location of the same had a link only, as shown attached.
just read the picture you posted. You successfully started that x server (successfully opened the display) and killed. Probably you pressed Ctrl-C or something similar.
You need to keep it running. So open a cygwin terminal, run startx, open another terminal and run ddd or anything else without killing/stopping your X server.
just read the picture you posted. You successfully started that x server (successfully opened the display) and killed. Probably you pressed Ctrl-C or something similar.
You need to keep it running. So open a cygwin terminal, run startx, open another terminal and run ddd or anything else without killing/stopping your X server.
The command: startx, is run again, with the same results, and it temporarily opens up CygwinX window too.
Never terminated it, or any keypress happened.
Edit: Googled, and found the issue exists.
The result, seems has sthg relevant.
Trying to understand it, but ....
Edit#2: I tried the alternative command: startxwin; but it gave correct output, as if the display is running; but nothing like temporary display CygwinX window.
Also not able to run : ddd command, on another cygwin terminal window..
The second attachment shows the output, obtained on running the command.
just read the picture you posted. You successfully started that x server (successfully opened the display) and killed. Probably you pressed Ctrl-C or something similar.
You need to keep it running. So open a cygwin terminal, run startx, open another terminal and run ddd or anything else without killing/stopping your X server.
Sorry to bug, but if my last response could have some answer.
That might provide solution approach to similar problems too in future.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.