Today, qtcreator is installed in Ubuntu to test whether it can be used. As a result, a problem occurs during the test. After a simple compilation, F5 compilation appears in gnome-terminal.
Cannot connect creator comm socket/tmp/qt_temp.u14973/stub-socket: no such file or directory So I checked that QT cannot be executed using gnome-terminal, and X-team is required. So I thought of the solution:
Find tools> environment> system> terminal ). Change X-terminal-emulator-e to/usr/bin/xterm-e.
Under normal circumstances, the problem has been solved, but unfortunately, I am not lucky. After F5, an error occurs:
Operations not allowed by ptrace
Baidu finds the solution:
$ Sudo VI/etc/sysctl. d/10-ptrace.conf $ kernel. Yama. ptrace_scope = 0
Finally, save and restart. If Vim is not used
$ Sudo gedit/etc/sysctl. d/10-ptrace.conf
Change the last line to kernel. Yama. ptrace_scope = 0. Save and restart.