Cannot connect creator comm socket /tmp/qt_temp.JH2103/stub-socket: No such file or directory

10,681

Solution 1

I had the same problem in Ubuntu 11.10 after installing Qt Creator with apt-get. If you will go to Qt Creator settings and change the terminal to /usr/bin/xterm -e then it should work.

Solution 2

This one works for me.

Menu | Tools | Options | Environment | General | System | Terminal
konsole --nofork -e

Solution 3

You can follow these steps to make the change:

Tools > Options > Environment > General > System > Terminal: xterm -e

Solution 4

The Qt Creator does not support a full terminal in its GUI/ Console applications started from the creator display their output in a window of the creator. This window does not support cin. To handle such programs they must be executed in an actual terminal. Also under linux the correct terminal program must be specified in the creator settings.

Set program execution to be in terminal in Qt Creator:

1 - In the left icon bar: press “Projects“

2 - In the area “Run Settings“: press “Show details“

3 - Check “Run in terminal“

Set terminal in Qt Creator for linux:

1 - Menu: Tools -> Options...

2 - Select “Environment“ -> “General“

3 - Set text for “Terminal:“ to “/usr/bin/xterm -e“

4 - Press “OK“

And you are done.

Solution 5

I ran into this same issue and it turned out I had too many instances of my console application running in the background. I left my settings to gnome-terminal -x and instead just closed all the running instances of my application then tried again and it worked.

Share:
10,681
sashoalm
Author by

sashoalm

Updated on June 20, 2022

Comments

  • sashoalm
    sashoalm about 2 years

    I'm getting this error when I run a console-based project from Qt Creator in Kubuntu. The Konsole terminal pops up but it only says:

    Cannot connect creator comm socket /tmp/qt_temp.JH2103/stub-socket: No such file or directory
    Press <RETURN> to close this window...
    
  • Miroslav Šiagi
    Miroslav Šiagi over 11 years
    Precisely: /usr/bin/xterm -e
  • sashoalm
    sashoalm over 10 years
    Konsole is an actual terminal.