Solution to display cannot connect creator comm socket/tmp/ during QT compilation in Ubuntu

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.