You are not logged in.

#1 2018-11-15 15:39

Andresser17
Member
Registered: 2018-11-15
Posts: 1

Geany compiles but does not run the program

I get this error:

Konsole is unable to open a PTY (pseudo teletype). It is likely that this is due to an incorrect configuration of the PTY devices. Konsole needs to have read/write access to the PTY devices.

Offline

#2 2018-11-20 17:26

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Geany compiles but does not run the program

Please specify, what way did you compile Geany ?

We have successfully tested Geany compilation the standard Debian way:
$ sudo apt-get build-dep geany
$ apt-get -b source geany
Compiled Geany binary launched and worked fine here.

Offline

#3 2024-01-28 06:10

david_siburian
Member
Registered: 2024-01-28
Posts: 2

Re: Geany compiles but does not run the program

I have the same problem too. When I tried to compile a java source file with geany, it displays the same error too.
FYI, I'm using Q4OS Trinity 32 bit with openjdk 17.0.9 in my system.

Offline

#4 2024-01-28 10:21

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Geany compiles but does not run the program

@david_siburian, @Andresser17
Please post more detailed info, so we could reproduce the issue. How did you proceed exactly ?

Offline

#5 2024-04-28 10:19

david_siburian
Member
Registered: 2024-01-28
Posts: 2

Re: Geany compiles but does not run the program

Okay, here is the steps I've done so far:
1. Open geany and create a java source file(for example, a simple HelloWorld.java file).
2. Save it on anywhere else
3. Click the "Compile the current file" icon in the toolbar.
4. Wait a moment, then the "Compilation finished successfully" message appeared in the compiler section inside message window.
5. Click the "Run or view the current file" icon in the toolbar.
6. A new Konsole window appears but there is an error message saying "Konsole is unable to open a PTY(pseudo teletype). It is likely that this is due to an incorrect configuration of the PTY devices. Konsole needs to have read/write access to the PTY devices.".

I don't know why such that error message appears when I'm expecting the result will be an execution of such java class file(HelloWorld.class file) inside Konsole. I was forced to switch to another terminal such as xterm and when I repeated the same steps again it works on xterm. Why such that thing is happened? Is there a kind of bug in Konsole? And how do I resolve this?

Last edited by david_siburian (2024-04-28 10:30)

Offline

Board footer

Powered by FluxBB